unbreak following HMAC_CTX_new/free addition
This commit is contained in:
parent
6284280dcc
commit
c2ceefab22
19
sysutils/login_duo/patches/patch-lib_https_c
Normal file
19
sysutils/login_duo/patches/patch-lib_https_c
Normal file
@ -0,0 +1,19 @@
|
||||
$OpenBSD: patch-lib_https_c,v 1.3 2018/02/18 11:06:09 sthen Exp $
|
||||
|
||||
Index: lib/https.c
|
||||
--- lib/https.c.orig
|
||||
+++ lib/https.c
|
||||
@@ -350,10 +350,10 @@ _establish_connection(struct https_request * const req
|
||||
}
|
||||
|
||||
/* Provide implementations for HMAC_CTX_new and HMAC_CTX_free when
|
||||
- * building for OpenSSL versions older than 1.1.0
|
||||
- * or any version of LibreSSL.
|
||||
+ * building for OpenSSL versions older than 1.1.0 or LibreSSL older than 2.7
|
||||
*/
|
||||
-#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
|
||||
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || \
|
||||
+ (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL)
|
||||
static HMAC_CTX *
|
||||
HMAC_CTX_new(void)
|
||||
{
|
Loading…
Reference in New Issue
Block a user