void-packages/srcpkgs/h2o/patches/fix-libressl-2.7.patch

13 lines
447 B
Diff

--- deps/neverbleed/neverbleed.c.orig 2018-04-25 12:58:28.060403297 +0200
+++ deps/neverbleed/neverbleed.c 2018-04-25 12:58:09.600375394 +0200
@@ -547,7 +547,7 @@ static int sign_stub(struct expbuf_t *bu
return 0;
}
-#if !OPENSSL_1_1_API
+#if !OPENSSL_1_1_API && defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL
static void RSA_get0_key(const RSA *rsa, const BIGNUM **n, const BIGNUM **e, const BIGNUM **d)
{