Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/lib/libc/hash md2 has been deprecated in OpenSSL-1.1
details: https://anonhg.NetBSD.org/src/rev/b03e3ead5509
branches: trunk
changeset: 359345:b03e3ead5509
user: christos <christos%NetBSD.org@localhost>
date: Wed Feb 07 13:18:33 2018 +0000
description:
md2 has been deprecated in OpenSSL-1.1
diffstat:
tests/lib/libc/hash/t_hmac.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diffs (38 lines):
diff -r d705ea64ac4d -r b03e3ead5509 tests/lib/libc/hash/t_hmac.c
--- a/tests/lib/libc/hash/t_hmac.c Wed Feb 07 13:16:50 2018 +0000
+++ b/tests/lib/libc/hash/t_hmac.c Wed Feb 07 13:18:33 2018 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: t_hmac.c,v 1.1 2016/07/02 14:52:09 christos Exp $ */
+/* $NetBSD: t_hmac.c,v 1.2 2018/02/07 13:18:33 christos Exp $ */
/*-
* Copyright (c) 2016 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__RCSID("$NetBSD: t_hmac.c,v 1.1 2016/07/02 14:52:09 christos Exp $");
+__RCSID("$NetBSD: t_hmac.c,v 1.2 2018/02/07 13:18:33 christos Exp $");
#include <atf-c.h>
#include <string.h>
@@ -49,7 +49,9 @@
int stop;
void *e1;
const void *evps[] = {
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
EVP_md2(),
+#endif
EVP_md4(),
EVP_md5(),
EVP_ripemd160(),
@@ -60,7 +62,9 @@
EVP_sha512(),
};
const char *names[] = {
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
"md2",
+#endif
"md4",
"md5",
"rmd160",
Home |
Main Index |
Thread Index |
Old Index