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/dsa/dsa_pmeth.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/dsa/dsa_pmeth.c')
-rw-r--r-- | src/lib/libcrypto/dsa/dsa_pmeth.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/dsa/dsa_pmeth.c b/src/lib/libcrypto/dsa/dsa_pmeth.c index 715d8d675b..7076bf7b67 100644 --- a/src/lib/libcrypto/dsa/dsa_pmeth.c +++ b/src/lib/libcrypto/dsa/dsa_pmeth.c | |||
@@ -81,7 +81,7 @@ typedef struct | |||
81 | static int pkey_dsa_init(EVP_PKEY_CTX *ctx) | 81 | static int pkey_dsa_init(EVP_PKEY_CTX *ctx) |
82 | { | 82 | { |
83 | DSA_PKEY_CTX *dctx; | 83 | DSA_PKEY_CTX *dctx; |
84 | dctx = OPENSSL_malloc(sizeof(DSA_PKEY_CTX)); | 84 | dctx = malloc(sizeof(DSA_PKEY_CTX)); |
85 | if (!dctx) | 85 | if (!dctx) |
86 | return 0; | 86 | return 0; |
87 | dctx->nbits = 1024; | 87 | dctx->nbits = 1024; |
@@ -114,7 +114,7 @@ static void pkey_dsa_cleanup(EVP_PKEY_CTX *ctx) | |||
114 | { | 114 | { |
115 | DSA_PKEY_CTX *dctx = ctx->data; | 115 | DSA_PKEY_CTX *dctx = ctx->data; |
116 | if (dctx) | 116 | if (dctx) |
117 | OPENSSL_free(dctx); | 117 | free(dctx); |
118 | } | 118 | } |
119 | 119 | ||
120 | static int pkey_dsa_sign(EVP_PKEY_CTX *ctx, unsigned char *sig, size_t *siglen, | 120 | static int pkey_dsa_sign(EVP_PKEY_CTX *ctx, unsigned char *sig, size_t *siglen, |