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: OpenSSL_1_0_2-beta2~68 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2af68ef7747fa44089c61ab76d1b35f3fd3bf2c5;p=openssl Don't core dump when using CMAC with dgst. We can't unfortunately print the CMAC cipher used without extending the API. PR#2579 (cherry picked from commit 79e31a2842e10271581cbfdaae0145dd4bd35107) --- 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