From 953e9eb5fe486957e549fde54d4318565e15c2e6 Mon Sep 17 00:00:00 2001 From: jca Date: Mon, 10 Jan 2022 23:54:02 +0000 Subject: [PATCH] Don't attempt to use EVP_sha512_256(), not provided by LibreSSL (yet?) Build errors spotted on sparc64 with ld.bfd, culprit pointed out by sthen@. ld.lld arches may be affected at runtime too. ok tb@ --- net/neon/Makefile | 3 ++- net/neon/patches/patch-src_ne_openssl_c | 15 +++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 net/neon/patches/patch-src_ne_openssl_c diff --git a/net/neon/Makefile b/net/neon/Makefile index cc489ec6bc2..cecd7dd9722 100644 --- a/net/neon/Makefile +++ b/net/neon/Makefile @@ -1,8 +1,9 @@ -# $OpenBSD: Makefile,v 1.48 2021/12/30 16:29:56 ajacoutot Exp $ +# $OpenBSD: Makefile,v 1.49 2022/01/10 23:54:02 jca Exp $ COMMENT= HTTP and WebDAV client library, with C interface DISTNAME= neon-0.32.1 +REVISION= 0 SHARED_LIBS += neon 31.3 # 32.1 diff --git a/net/neon/patches/patch-src_ne_openssl_c b/net/neon/patches/patch-src_ne_openssl_c new file mode 100644 index 00000000000..6a7a0915b9f --- /dev/null +++ b/net/neon/patches/patch-src_ne_openssl_c @@ -0,0 +1,15 @@ +$OpenBSD: patch-src_ne_openssl_c,v 1.7 2022/01/10 23:54:02 jca Exp $ + +LibreSSL does not provide EVP_sha512_256() + +Index: src/ne_openssl.c +--- src/ne_openssl.c.orig ++++ src/ne_openssl.c +@@ -1121,7 +1121,6 @@ static const EVP_MD *hash_to_md(unsigned int flags) + case NE_HASH_SHA256: return EVP_sha256(); + #ifdef HAVE_OPENSSL11 + case NE_HASH_SHA512: return EVP_sha512(); +- case NE_HASH_SHA512_256: return EVP_sha512_256(); + #endif + default: break; + }