diff options
author | Rich Salz <rsalz@akamai.com> | 2021-02-17 16:15:27 -0500 |
---|---|---|
committer | Dmitry Belyavskiy <beldmit@gmail.com> | 2021-04-20 10:12:29 +0200 |
commit | 606a417fb2b6ce5d1d112f2f3f710c8085744627 (patch) | |
tree | 332af9e08a75b5f628f6786300d6ee43a816e964 /apps/crl.c | |
parent | c39352e4e4952a9f4b2171134af0e015a4d40768 (diff) | |
download | openssl-606a417fb2b6ce5d1d112f2f3f710c8085744627.tar.gz |
Fetch and free cipher and md's
Reviewed-by: Richard Levitte <levitte@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/14219)
Diffstat (limited to 'apps/crl.c')
-rw-r--r-- | apps/crl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/crl.c b/apps/crl.c index e8b501a8af..7f09d476c1 100644 --- a/apps/crl.c +++ b/apps/crl.c @@ -82,7 +82,7 @@ int crl_main(int argc, char **argv) X509_LOOKUP *lookup = NULL; X509_OBJECT *xobj = NULL; EVP_PKEY *pkey; - const EVP_MD *digest = EVP_sha1(); + EVP_MD *digest = (EVP_MD *)EVP_sha1(); char *infile = NULL, *outfile = NULL, *crldiff = NULL, *keyfile = NULL; char *digestname = NULL; const char *CAfile = NULL, *CApath = NULL, *CAstore = NULL, *prog; @@ -381,6 +381,7 @@ int crl_main(int argc, char **argv) if (ret != 0) ERR_print_errors(bio_err); BIO_free_all(out); + EVP_MD_free(digest); X509_CRL_free(x); X509_STORE_CTX_free(ctx); X509_STORE_free(store); |