diff options
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, | 
