diff options
Diffstat (limited to 'src/lib/libcrypto/cms/cms_enc.c')
-rw-r--r-- | src/lib/libcrypto/cms/cms_enc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/cms/cms_enc.c b/src/lib/libcrypto/cms/cms_enc.c index a04c831f95..a032c801f5 100644 --- a/src/lib/libcrypto/cms/cms_enc.c +++ b/src/lib/libcrypto/cms/cms_enc.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: cms_enc.c,v 1.15 2019/08/11 10:38:27 jsing Exp $ */ | 1 | /* $OpenBSD: cms_enc.c,v 1.16 2019/08/11 10:41:49 jsing Exp $ */ |
2 | /* | 2 | /* |
3 | * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 3 | * Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
4 | * project. | 4 | * project. |
@@ -128,7 +128,7 @@ cms_EncryptedContent_init_bio(CMS_EncryptedContentInfo *ec) | |||
128 | tkeylen = EVP_CIPHER_CTX_key_length(ctx); | 128 | tkeylen = EVP_CIPHER_CTX_key_length(ctx); |
129 | /* Generate random session key */ | 129 | /* Generate random session key */ |
130 | if (!enc || !ec->key) { | 130 | if (!enc || !ec->key) { |
131 | tkey = OPENSSL_malloc(tkeylen); | 131 | tkey = malloc(tkeylen); |
132 | if (tkey == NULL) { | 132 | if (tkey == NULL) { |
133 | CMSerror(ERR_R_MALLOC_FAILURE); | 133 | CMSerror(ERR_R_MALLOC_FAILURE); |
134 | goto err; | 134 | goto err; |
@@ -209,7 +209,7 @@ cms_EncryptedContent_init(CMS_EncryptedContentInfo *ec, | |||
209 | { | 209 | { |
210 | ec->cipher = cipher; | 210 | ec->cipher = cipher; |
211 | if (key) { | 211 | if (key) { |
212 | if ((ec->key = OPENSSL_malloc(keylen)) == NULL) { | 212 | if ((ec->key = malloc(keylen)) == NULL) { |
213 | CMSerror(ERR_R_MALLOC_FAILURE); | 213 | CMSerror(ERR_R_MALLOC_FAILURE); |
214 | return 0; | 214 | return 0; |
215 | } | 215 | } |