Have the few apps that accessed EVP_MD directly use accessors instead
[openssl.git] / apps / ca.c
index eea9d99cb49339cc7662572ec7b2c04bbbdeac2a..f6ba23926bb73b16a9b95ba13b2ebd5ef3be0b5e 100644 (file)
--- a/apps/ca.c
+++ b/apps/ca.c
@@ -828,7 +828,7 @@ end_of_options:
         }
         if (verbose)
             BIO_printf(bio_err, "message digest is %s\n",
-                       OBJ_nid2ln(dgst->type));
+                       OBJ_nid2ln(EVP_MD_type(dgst)));
         if ((policy == NULL) && ((policy = NCONF_get_string(conf,
                                                             section,
                                                             ENV_POLICY)) ==