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/ecp_smpl.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/ecp_smpl.c')
-rw-r--r-- | src/lib/libcrypto/ec/ecp_smpl.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/ec/ecp_smpl.c b/src/lib/libcrypto/ec/ecp_smpl.c index bf0ad998dd..a146752817 100644 --- a/src/lib/libcrypto/ec/ecp_smpl.c +++ b/src/lib/libcrypto/ec/ecp_smpl.c | |||
@@ -1205,7 +1205,7 @@ int ec_GFp_simple_points_make_affine(const EC_GROUP *group, size_t num, EC_POINT | |||
1205 | * We need twice that. */ | 1205 | * We need twice that. */ |
1206 | pow2 <<= 1; | 1206 | pow2 <<= 1; |
1207 | 1207 | ||
1208 | heap = OPENSSL_malloc(pow2 * sizeof heap[0]); | 1208 | heap = malloc(pow2 * sizeof heap[0]); |
1209 | if (heap == NULL) goto err; | 1209 | if (heap == NULL) goto err; |
1210 | 1210 | ||
1211 | /* The array is used as a binary tree, exactly as in heapsort: | 1211 | /* The array is used as a binary tree, exactly as in heapsort: |
@@ -1333,7 +1333,7 @@ int ec_GFp_simple_points_make_affine(const EC_GROUP *group, size_t num, EC_POINT | |||
1333 | if (heap[i] != NULL) | 1333 | if (heap[i] != NULL) |
1334 | BN_clear_free(heap[i]); | 1334 | BN_clear_free(heap[i]); |
1335 | } | 1335 | } |
1336 | OPENSSL_free(heap); | 1336 | free(heap); |
1337 | } | 1337 | } |
1338 | return ret; | 1338 | return ret; |
1339 | } | 1339 | } |