summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/dh/dh_pmeth.c
diff options
context:
space:
mode:
authorbeck <>2014-04-17 13:37:50 +0000
committerbeck <>2014-04-17 13:37:50 +0000
commitbddb7c686e3d1aeb156722adc64b6c35ae720f87 (patch)
tree7595a93a27385c367802aa17ecf20f96551cf14d /src/lib/libcrypto/dh/dh_pmeth.c
parentecec66222d758996a4ff2671ca5026d9ede5ef76 (diff)
downloadopenbsd-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/dh/dh_pmeth.c')
-rw-r--r--src/lib/libcrypto/dh/dh_pmeth.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/dh/dh_pmeth.c b/src/lib/libcrypto/dh/dh_pmeth.c
index 5ae72b7d4c..ec4553c0a8 100644
--- a/src/lib/libcrypto/dh/dh_pmeth.c
+++ b/src/lib/libcrypto/dh/dh_pmeth.c
@@ -80,7 +80,7 @@ typedef struct
80static int pkey_dh_init(EVP_PKEY_CTX *ctx) 80static int pkey_dh_init(EVP_PKEY_CTX *ctx)
81 { 81 {
82 DH_PKEY_CTX *dctx; 82 DH_PKEY_CTX *dctx;
83 dctx = OPENSSL_malloc(sizeof(DH_PKEY_CTX)); 83 dctx = malloc(sizeof(DH_PKEY_CTX));
84 if (!dctx) 84 if (!dctx)
85 return 0; 85 return 0;
86 dctx->prime_len = 1024; 86 dctx->prime_len = 1024;
@@ -111,7 +111,7 @@ static void pkey_dh_cleanup(EVP_PKEY_CTX *ctx)
111 { 111 {
112 DH_PKEY_CTX *dctx = ctx->data; 112 DH_PKEY_CTX *dctx = ctx->data;
113 if (dctx) 113 if (dctx)
114 OPENSSL_free(dctx); 114 free(dctx);
115 } 115 }
116 116
117static int pkey_dh_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2) 117static int pkey_dh_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2)