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@
This commit is contained in:
jca 2022-01-10 23:54:02 +00:00
parent 0781cb4aae
commit 953e9eb5fe
2 changed files with 17 additions and 1 deletions

View File

@ -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 COMMENT= HTTP and WebDAV client library, with C interface
DISTNAME= neon-0.32.1 DISTNAME= neon-0.32.1
REVISION= 0
SHARED_LIBS += neon 31.3 # 32.1 SHARED_LIBS += neon 31.3 # 32.1

View File

@ -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;
}