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/ecdh/ech_ossl.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/ecdh/ech_ossl.c')
-rw-r--r-- | src/lib/libcrypto/ecdh/ech_ossl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/ecdh/ech_ossl.c b/src/lib/libcrypto/ecdh/ech_ossl.c index 4a30628fbc..a63eb4922d 100644 --- a/src/lib/libcrypto/ecdh/ech_ossl.c +++ b/src/lib/libcrypto/ecdh/ech_ossl.c | |||
@@ -175,7 +175,7 @@ static int ecdh_compute_key(void *out, size_t outlen, const EC_POINT *pub_key, | |||
175 | ECDHerr(ECDH_F_ECDH_COMPUTE_KEY,ERR_R_INTERNAL_ERROR); | 175 | ECDHerr(ECDH_F_ECDH_COMPUTE_KEY,ERR_R_INTERNAL_ERROR); |
176 | goto err; | 176 | goto err; |
177 | } | 177 | } |
178 | if ((buf = OPENSSL_malloc(buflen)) == NULL) | 178 | if ((buf = malloc(buflen)) == NULL) |
179 | { | 179 | { |
180 | ECDHerr(ECDH_F_ECDH_COMPUTE_KEY,ERR_R_MALLOC_FAILURE); | 180 | ECDHerr(ECDH_F_ECDH_COMPUTE_KEY,ERR_R_MALLOC_FAILURE); |
181 | goto err; | 181 | goto err; |
@@ -210,6 +210,6 @@ err: | |||
210 | if (tmp) EC_POINT_free(tmp); | 210 | if (tmp) EC_POINT_free(tmp); |
211 | if (ctx) BN_CTX_end(ctx); | 211 | if (ctx) BN_CTX_end(ctx); |
212 | if (ctx) BN_CTX_free(ctx); | 212 | if (ctx) BN_CTX_free(ctx); |
213 | if (buf) OPENSSL_free(buf); | 213 | if (buf) free(buf); |
214 | return(ret); | 214 | return(ret); |
215 | } | 215 | } |