From: Dr. Stephen Henson Date: Sun, 29 Jun 2014 22:25:59 +0000 (+0100) Subject: Don't core dump when using CMAC with dgst. X-Git-Tag: master-post-reformat~647 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=90c1946e7a3aaabaed630474304485b7c850cfa6;p=oweals%2Fopenssl.git Don't core dump when using CMAC with dgst. We can't unfortunately print the CMAC cipher used without extending the API. PR#2579 --- diff --git a/apps/dgst.c b/apps/dgst.c index d471dbdabd..19c9424be2 100644 --- a/apps/dgst.c +++ b/apps/dgst.c @@ -529,7 +529,8 @@ int MAIN(int argc, char **argv) EVP_PKEY_asn1_get0_info(NULL, NULL, NULL, NULL, &sig_name, ameth); } - md_name = EVP_MD_name(md); + if (md) + md_name = EVP_MD_name(md); } err = 0; for (i=0; i