diff options
| author | beck <> | 2014-04-17 13:37:50 +0000 | 
|---|---|---|
| committer | beck <> | 2014-04-17 13:37:50 +0000 | 
| commit | 6aa5f85bab6ba5f9189fbc3d53a12e0f6dae48dd (patch) | |
| tree | 7595a93a27385c367802aa17ecf20f96551cf14d /src/lib/libcrypto/ecdh/ech_ossl.c | |
| parent | 4d13fb9c7b5ac7311d7031173c21ab0121388413 (diff) | |
| download | openbsd-6aa5f85bab6ba5f9189fbc3d53a12e0f6dae48dd.tar.gz openbsd-6aa5f85bab6ba5f9189fbc3d53a12e0f6dae48dd.tar.bz2 openbsd-6aa5f85bab6ba5f9189fbc3d53a12e0f6dae48dd.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 | } | 
