summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2021-11-21 22:34:30 +0000
committertb <>2021-11-21 22:34:30 +0000
commit17ed5d3a5a436a18bd5da10d744ff29d89e16473 (patch)
treedcd89e5b7072952df88ba7c67d10735e43a346de
parentaa176fce509d4a6467d55429aaa3ea0256ad6eda (diff)
downloadopenbsd-17ed5d3a5a436a18bd5da10d744ff29d89e16473.tar.gz
openbsd-17ed5d3a5a436a18bd5da10d744ff29d89e16473.tar.bz2
openbsd-17ed5d3a5a436a18bd5da10d744ff29d89e16473.zip
Tweak for opaque EVP_MD: use EVP_MD_type(dgst) instead of dgst->type.
-rw-r--r--src/usr.bin/openssl/ca.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/usr.bin/openssl/ca.c b/src/usr.bin/openssl/ca.c
index 8922486bc4..c711f8b4b2 100644
--- a/src/usr.bin/openssl/ca.c
+++ b/src/usr.bin/openssl/ca.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ca.c,v 1.51 2021/10/23 12:00:18 tb Exp $ */ 1/* $OpenBSD: ca.c,v 1.52 2021/11/21 22:34:30 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -1082,7 +1082,7 @@ ca_main(int argc, char **argv)
1082 } 1082 }
1083 if (ca_config.verbose) 1083 if (ca_config.verbose)
1084 BIO_printf(bio_err, "message digest is %s\n", 1084 BIO_printf(bio_err, "message digest is %s\n",
1085 OBJ_nid2ln(dgst->type)); 1085 OBJ_nid2ln(EVP_MD_type(dgst)));
1086 if ((ca_config.policy == NULL) && 1086 if ((ca_config.policy == NULL) &&
1087 ((ca_config.policy = NCONF_get_string(conf, 1087 ((ca_config.policy = NCONF_get_string(conf,
1088 ca_config.section, ENV_POLICY)) == NULL)) { 1088 ca_config.section, ENV_POLICY)) == NULL)) {