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/asn1/a_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/asn1/a_sign.c')
-rw-r--r-- | src/lib/libcrypto/asn1/a_sign.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/asn1/a_sign.c b/src/lib/libcrypto/asn1/a_sign.c index 83e7f44d12..d9385312a7 100644 --- a/src/lib/libcrypto/asn1/a_sign.c +++ b/src/lib/libcrypto/asn1/a_sign.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: a_sign.c,v 1.19 2014/07/11 08:44:47 jsing Exp $ */ | 1 | /* $OpenBSD: a_sign.c,v 1.20 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 | * |
@@ -203,7 +203,7 @@ ASN1_item_sign_ctx(const ASN1_ITEM *it, X509_ALGOR *algor1, X509_ALGOR *algor2, | |||
203 | 203 | ||
204 | inl = ASN1_item_i2d(asn, &buf_in, it); | 204 | inl = ASN1_item_i2d(asn, &buf_in, it); |
205 | outll = outl = EVP_PKEY_size(pkey); | 205 | outll = outl = EVP_PKEY_size(pkey); |
206 | buf_out = malloc((unsigned int)outl); | 206 | buf_out = malloc(outl); |
207 | if ((buf_in == NULL) || (buf_out == NULL)) { | 207 | if ((buf_in == NULL) || (buf_out == NULL)) { |
208 | outl = 0; | 208 | outl = 0; |
209 | ASN1err(ASN1_F_ASN1_ITEM_SIGN_CTX, ERR_R_MALLOC_FAILURE); | 209 | ASN1err(ASN1_F_ASN1_ITEM_SIGN_CTX, ERR_R_MALLOC_FAILURE); |
@@ -229,7 +229,7 @@ ASN1_item_sign_ctx(const ASN1_ITEM *it, X509_ALGOR *algor1, X509_ALGOR *algor2, | |||
229 | err: | 229 | err: |
230 | EVP_MD_CTX_cleanup(ctx); | 230 | EVP_MD_CTX_cleanup(ctx); |
231 | if (buf_in != NULL) { | 231 | if (buf_in != NULL) { |
232 | OPENSSL_cleanse((char *)buf_in, (unsigned int)inl); | 232 | OPENSSL_cleanse((char *)buf_in, inl); |
233 | free(buf_in); | 233 | free(buf_in); |
234 | } | 234 | } |
235 | if (buf_out != NULL) { | 235 | if (buf_out != NULL) { |