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/ec/eck_prn.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/ec/eck_prn.c')
| -rw-r--r-- | src/lib/libcrypto/ec/eck_prn.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/ec/eck_prn.c b/src/lib/libcrypto/ec/eck_prn.c index 06de8f3959..4e8c748bbc 100644 --- a/src/lib/libcrypto/ec/eck_prn.c +++ b/src/lib/libcrypto/ec/eck_prn.c | |||
| @@ -263,7 +263,7 @@ int ECPKParameters_print(BIO *bp, const EC_GROUP *x, int off) | |||
| 263 | seed_len = EC_GROUP_get_seed_len(x); | 263 | seed_len = EC_GROUP_get_seed_len(x); |
| 264 | 264 | ||
| 265 | buf_len += 10; | 265 | buf_len += 10; |
| 266 | if ((buffer = OPENSSL_malloc(buf_len)) == NULL) | 266 | if ((buffer = malloc(buf_len)) == NULL) |
| 267 | { | 267 | { |
| 268 | reason = ERR_R_MALLOC_FAILURE; | 268 | reason = ERR_R_MALLOC_FAILURE; |
| 269 | goto err; | 269 | goto err; |
| @@ -349,7 +349,7 @@ err: | |||
| 349 | if (ctx) | 349 | if (ctx) |
| 350 | BN_CTX_free(ctx); | 350 | BN_CTX_free(ctx); |
| 351 | if (buffer != NULL) | 351 | if (buffer != NULL) |
| 352 | OPENSSL_free(buffer); | 352 | free(buffer); |
| 353 | return(ret); | 353 | return(ret); |
| 354 | } | 354 | } |
| 355 | 355 | ||
