-/* $OpenBSD: ca.c,v 1.51 2021/10/23 12:00:18 tb Exp $ */
+/* $OpenBSD: ca.c,v 1.52 2021/11/21 22:34:30 tb Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
}
if (ca_config.verbose)
BIO_printf(bio_err, "message digest is %s\n",
- OBJ_nid2ln(dgst->type));
+ OBJ_nid2ln(EVP_MD_type(dgst)));
if ((ca_config.policy == NULL) &&
((ca_config.policy = NCONF_get_string(conf,
ca_config.section, ENV_POLICY)) == NULL)) {