diff options
Diffstat (limited to 'src/lib/libcrypto/rsa/rsa_sign.c')
-rw-r--r-- | src/lib/libcrypto/rsa/rsa_sign.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/rsa/rsa_sign.c b/src/lib/libcrypto/rsa/rsa_sign.c index f9772bbce7..c6f7b0a3a3 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 *)malloc((unsigned int)j+1); | 123 | tmps = 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); |
@@ -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 *)malloc((unsigned int)siglen); | 172 | s = 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); |