diff options
author | miod <> | 2015-07-19 18:29:31 +0000 |
---|---|---|
committer | miod <> | 2015-07-19 18:29:31 +0000 |
commit | 243442e0f6d87748dcaccc2d2d3bf5605be3e3a9 (patch) | |
tree | 7d71f138b5b5706a448942547e5154bd651f174c /src/lib/libcrypto/rsa/rsa_sign.c | |
parent | 7adb4eeffce8c01c0c9ae40701483cf6eb71d9de (diff) | |
download | openbsd-243442e0f6d87748dcaccc2d2d3bf5605be3e3a9.tar.gz openbsd-243442e0f6d87748dcaccc2d2d3bf5605be3e3a9.tar.bz2 openbsd-243442e0f6d87748dcaccc2d2d3bf5605be3e3a9.zip |
Drop stupid (int) casts for the arguments of malloc() and friends. This is
not 16-bit MS-DOS anymore.
ok bcook@ tedu@
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; |