diff options
Diffstat (limited to 'src/lib/libcrypto/rsa/rsa_sign.c')
-rw-r--r-- | src/lib/libcrypto/rsa/rsa_sign.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/rsa/rsa_sign.c b/src/lib/libcrypto/rsa/rsa_sign.c index fa3239ab30..71d6bb3ce4 100644 --- a/src/lib/libcrypto/rsa/rsa_sign.c +++ b/src/lib/libcrypto/rsa/rsa_sign.c | |||
@@ -120,7 +120,7 @@ int RSA_sign(int type, const unsigned char *m, unsigned int m_len, | |||
120 | return(0); | 120 | return(0); |
121 | } | 121 | } |
122 | if(type != NID_md5_sha1) { | 122 | if(type != NID_md5_sha1) { |
123 | tmps=(unsigned char *)OPENSSL_malloc((unsigned int)j+1); | 123 | tmps=(unsigned char *)malloc((unsigned int)j+1); |
124 | if (tmps == NULL) | 124 | if (tmps == NULL) |
125 | { | 125 | { |
126 | RSAerr(RSA_F_RSA_SIGN,ERR_R_MALLOC_FAILURE); | 126 | RSAerr(RSA_F_RSA_SIGN,ERR_R_MALLOC_FAILURE); |
@@ -138,7 +138,7 @@ int RSA_sign(int type, const unsigned char *m, unsigned int m_len, | |||
138 | 138 | ||
139 | if(type != NID_md5_sha1) { | 139 | if(type != NID_md5_sha1) { |
140 | OPENSSL_cleanse(tmps,(unsigned int)j+1); | 140 | OPENSSL_cleanse(tmps,(unsigned int)j+1); |
141 | OPENSSL_free(tmps); | 141 | free(tmps); |
142 | } | 142 | } |
143 | return(ret); | 143 | return(ret); |
144 | } | 144 | } |
@@ -169,7 +169,7 @@ int int_rsa_verify(int dtype, const unsigned char *m, | |||
169 | return 1; | 169 | return 1; |
170 | } | 170 | } |
171 | 171 | ||
172 | s=(unsigned char *)OPENSSL_malloc((unsigned int)siglen); | 172 | s=(unsigned char *)malloc((unsigned int)siglen); |
173 | if (s == NULL) | 173 | if (s == NULL) |
174 | { | 174 | { |
175 | RSAerr(RSA_F_INT_RSA_VERIFY,ERR_R_MALLOC_FAILURE); | 175 | RSAerr(RSA_F_INT_RSA_VERIFY,ERR_R_MALLOC_FAILURE); |
@@ -281,7 +281,7 @@ err: | |||
281 | if (s != NULL) | 281 | if (s != NULL) |
282 | { | 282 | { |
283 | OPENSSL_cleanse(s,(unsigned int)siglen); | 283 | OPENSSL_cleanse(s,(unsigned int)siglen); |
284 | OPENSSL_free(s); | 284 | free(s); |
285 | } | 285 | } |
286 | return(ret); | 286 | return(ret); |
287 | } | 287 | } |