diff options
author | beck <> | 2014-04-17 13:37:50 +0000 |
---|---|---|
committer | beck <> | 2014-04-17 13:37:50 +0000 |
commit | bddb7c686e3d1aeb156722adc64b6c35ae720f87 (patch) | |
tree | 7595a93a27385c367802aa17ecf20f96551cf14d /src/lib/libcrypto/evp/p_open.c | |
parent | ecec66222d758996a4ff2671ca5026d9ede5ef76 (diff) | |
download | openbsd-bddb7c686e3d1aeb156722adc64b6c35ae720f87.tar.gz openbsd-bddb7c686e3d1aeb156722adc64b6c35ae720f87.tar.bz2 openbsd-bddb7c686e3d1aeb156722adc64b6c35ae720f87.zip |
Change library to use intrinsic memory allocation functions instead of
OPENSSL_foo wrappers. This changes:
OPENSSL_malloc->malloc
OPENSSL_free->free
OPENSSL_relloc->realloc
OPENSSL_freeFunc->free
Diffstat (limited to 'src/lib/libcrypto/evp/p_open.c')
-rw-r--r-- | src/lib/libcrypto/evp/p_open.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/evp/p_open.c b/src/lib/libcrypto/evp/p_open.c index c748fbea87..2a5ab2b6cc 100644 --- a/src/lib/libcrypto/evp/p_open.c +++ b/src/lib/libcrypto/evp/p_open.c | |||
@@ -87,7 +87,7 @@ int EVP_OpenInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *type, | |||
87 | } | 87 | } |
88 | 88 | ||
89 | size=RSA_size(priv->pkey.rsa); | 89 | size=RSA_size(priv->pkey.rsa); |
90 | key=(unsigned char *)OPENSSL_malloc(size+2); | 90 | key=(unsigned char *)malloc(size+2); |
91 | if (key == NULL) | 91 | if (key == NULL) |
92 | { | 92 | { |
93 | /* ERROR */ | 93 | /* ERROR */ |
@@ -106,7 +106,7 @@ int EVP_OpenInit(EVP_CIPHER_CTX *ctx, const EVP_CIPHER *type, | |||
106 | ret=1; | 106 | ret=1; |
107 | err: | 107 | err: |
108 | if (key != NULL) OPENSSL_cleanse(key,size); | 108 | if (key != NULL) OPENSSL_cleanse(key,size); |
109 | OPENSSL_free(key); | 109 | free(key); |
110 | return(ret); | 110 | return(ret); |
111 | } | 111 | } |
112 | 112 | ||