diff options
Diffstat (limited to 'src/lib/libcrypto/bn/bn_ctx.c')
-rw-r--r-- | src/lib/libcrypto/bn/bn_ctx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/bn/bn_ctx.c b/src/lib/libcrypto/bn/bn_ctx.c index 46132fd180..b1a8d7571e 100644 --- a/src/lib/libcrypto/bn/bn_ctx.c +++ b/src/lib/libcrypto/bn/bn_ctx.c | |||
@@ -69,7 +69,7 @@ BN_CTX *BN_CTX_new(void) | |||
69 | { | 69 | { |
70 | BN_CTX *ret; | 70 | BN_CTX *ret; |
71 | 71 | ||
72 | ret=(BN_CTX *)Malloc(sizeof(BN_CTX)); | 72 | ret=(BN_CTX *)OPENSSL_malloc(sizeof(BN_CTX)); |
73 | if (ret == NULL) | 73 | if (ret == NULL) |
74 | { | 74 | { |
75 | BNerr(BN_F_BN_CTX_NEW,ERR_R_MALLOC_FAILURE); | 75 | BNerr(BN_F_BN_CTX_NEW,ERR_R_MALLOC_FAILURE); |
@@ -102,7 +102,7 @@ void BN_CTX_free(BN_CTX *ctx) | |||
102 | for (i=0; i < BN_CTX_NUM; i++) | 102 | for (i=0; i < BN_CTX_NUM; i++) |
103 | BN_clear_free(&(ctx->bn[i])); | 103 | BN_clear_free(&(ctx->bn[i])); |
104 | if (ctx->flags & BN_FLG_MALLOCED) | 104 | if (ctx->flags & BN_FLG_MALLOCED) |
105 | Free(ctx); | 105 | OPENSSL_free(ctx); |
106 | } | 106 | } |
107 | 107 | ||
108 | void BN_CTX_start(BN_CTX *ctx) | 108 | void BN_CTX_start(BN_CTX *ctx) |