diff options
Diffstat (limited to 'src/lib/libssl/src/crypto/asn1/a_sign.c')
| -rw-r--r-- | src/lib/libssl/src/crypto/asn1/a_sign.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libssl/src/crypto/asn1/a_sign.c b/src/lib/libssl/src/crypto/asn1/a_sign.c index 83e7f44d12..d9385312a7 100644 --- a/src/lib/libssl/src/crypto/asn1/a_sign.c +++ b/src/lib/libssl/src/crypto/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) { |
