summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--usr.bin/openssl/crl.c4
-rw-r--r--usr.bin/openssl/x509.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/openssl/crl.c b/usr.bin/openssl/crl.c
index 645b16ea540..cb1c18fa409 100644
--- a/usr.bin/openssl/crl.c
+++ b/usr.bin/openssl/crl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: crl.c,v 1.11 2018/02/07 05:47:55 jsing Exp $ */
+/* $OpenBSD: crl.c,v 1.12 2019/01/19 21:17:05 jsg Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -243,7 +243,7 @@ crl_main(int argc, char **argv)
}
}
- digest = EVP_sha1();
+ digest = EVP_sha256();
memset(&crl_config, 0, sizeof(crl_config));
crl_config.informat = FORMAT_PEM;
diff --git a/usr.bin/openssl/x509.c b/usr.bin/openssl/x509.c
index 84aeed3c074..b25a7c828c3 100644
--- a/usr.bin/openssl/x509.c
+++ b/usr.bin/openssl/x509.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: x509.c,v 1.16 2018/02/07 05:47:55 jsing Exp $ */
+/* $OpenBSD: x509.c,v 1.17 2019/01/19 21:17:05 jsg Exp $ */
/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
* All rights reserved.
*
@@ -788,7 +788,7 @@ x509_main(int argc, char **argv)
const EVP_MD *fdig = digest;
if (!fdig)
- fdig = EVP_sha1();
+ fdig = EVP_sha256();
if (!X509_digest(x, fdig, md, &n)) {
BIO_printf(bio_err, "out of memory\n");