diff options
Diffstat (limited to 'src/lib/libcrypto/rsa/rsa_sign.c')
| -rw-r--r-- | src/lib/libcrypto/rsa/rsa_sign.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/rsa/rsa_sign.c b/src/lib/libcrypto/rsa/rsa_sign.c index 09d8ef329d..db63c5f038 100644 --- a/src/lib/libcrypto/rsa/rsa_sign.c +++ b/src/lib/libcrypto/rsa/rsa_sign.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: rsa_sign.c,v 1.23 2015/06/20 01:07:25 doug Exp $ */ | 1 | /* $OpenBSD: rsa_sign.c,v 1.24 2015/07/19 18:29:31 miod Exp $ */ |
| 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
| 3 | * All rights reserved. | 3 | * All rights reserved. |
| 4 | * | 4 | * |
| @@ -121,7 +121,7 @@ RSA_sign(int type, const unsigned char *m, unsigned int m_len, | |||
| 121 | return 0; | 121 | return 0; |
| 122 | } | 122 | } |
| 123 | if (type != NID_md5_sha1) { | 123 | if (type != NID_md5_sha1) { |
| 124 | tmps = malloc((unsigned int)j + 1); | 124 | tmps = malloc(j + 1); |
| 125 | if (tmps == NULL) { | 125 | if (tmps == NULL) { |
| 126 | RSAerr(RSA_F_RSA_SIGN, ERR_R_MALLOC_FAILURE); | 126 | RSAerr(RSA_F_RSA_SIGN, ERR_R_MALLOC_FAILURE); |
| 127 | return 0; | 127 | return 0; |
| @@ -166,7 +166,7 @@ int_rsa_verify(int dtype, const unsigned char *m, unsigned int m_len, | |||
| 166 | return 1; | 166 | return 1; |
| 167 | } | 167 | } |
| 168 | 168 | ||
| 169 | s = malloc((unsigned int)siglen); | 169 | s = malloc(siglen); |
| 170 | if (s == NULL) { | 170 | if (s == NULL) { |
| 171 | RSAerr(RSA_F_INT_RSA_VERIFY, ERR_R_MALLOC_FAILURE); | 171 | RSAerr(RSA_F_INT_RSA_VERIFY, ERR_R_MALLOC_FAILURE); |
| 172 | goto err; | 172 | goto err; |
