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/engine/eng_rsax.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/engine/eng_rsax.c')
-rw-r--r-- | src/lib/libcrypto/engine/eng_rsax.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/engine/eng_rsax.c b/src/lib/libcrypto/engine/eng_rsax.c index 96e63477ee..fa9159499d 100644 --- a/src/lib/libcrypto/engine/eng_rsax.c +++ b/src/lib/libcrypto/engine/eng_rsax.c | |||
@@ -282,7 +282,7 @@ static E_RSAX_MOD_CTX *e_rsax_get_ctx(RSA *rsa, int idx, BIGNUM* m) | |||
282 | 282 | ||
283 | hptr = RSA_get_ex_data(rsa, rsax_ex_data_idx); | 283 | hptr = RSA_get_ex_data(rsa, rsax_ex_data_idx); |
284 | if (!hptr) { | 284 | if (!hptr) { |
285 | hptr = OPENSSL_malloc(3*sizeof(E_RSAX_MOD_CTX)); | 285 | hptr = malloc(3*sizeof(E_RSAX_MOD_CTX)); |
286 | if (!hptr) return NULL; | 286 | if (!hptr) return NULL; |
287 | hptr[2].type = hptr[1].type= hptr[0].type = 0; | 287 | hptr[2].type = hptr[1].type= hptr[0].type = 0; |
288 | RSA_set_ex_data(rsa, rsax_ex_data_idx, hptr); | 288 | RSA_set_ex_data(rsa, rsax_ex_data_idx, hptr); |
@@ -307,7 +307,7 @@ static int e_rsax_rsa_finish(RSA *rsa) | |||
307 | E_RSAX_MOD_CTX *hptr = RSA_get_ex_data(rsa, rsax_ex_data_idx); | 307 | E_RSAX_MOD_CTX *hptr = RSA_get_ex_data(rsa, rsax_ex_data_idx); |
308 | if(hptr) | 308 | if(hptr) |
309 | { | 309 | { |
310 | OPENSSL_free(hptr); | 310 | free(hptr); |
311 | RSA_set_ex_data(rsa, rsax_ex_data_idx, NULL); | 311 | RSA_set_ex_data(rsa, rsax_ex_data_idx, NULL); |
312 | } | 312 | } |
313 | if (rsa->_method_mod_n) | 313 | if (rsa->_method_mod_n) |