security/libssh2: Fix build with libressl-3.5

Approved by:		sbz (maintainer, timeout), tcberner (mentor)
Differential Revision:	https://reviews.freebsd.org/D37045
This commit is contained in:
Felix Palmen 2022-10-17 10:31:18 +02:00
parent 47c2569d89
commit 1f7edad4ce
2 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,12 @@
--- src/openssl.c.orig 2022-10-17 08:20:24 UTC
+++ src/openssl.c
@@ -653,8 +653,7 @@ _libssh2_EVP_aes_256_ctr(void)
void _libssh2_openssl_crypto_init(void)
{
-#if OPENSSL_VERSION_NUMBER >= 0x10100000L && \
- !defined(LIBRESSL_VERSION_NUMBER)
+#if OPENSSL_VERSION_NUMBER >= 0x10100000L
#ifndef OPENSSL_NO_ENGINE
ENGINE_load_builtin_engines();
ENGINE_register_all_complete();

View File

@ -0,0 +1,12 @@
--- src/openssl.h.orig 2022-10-17 08:18:24 UTC
+++ src/openssl.h
@@ -57,8 +57,7 @@
#include <openssl/pem.h>
#include <openssl/rand.h>
-#if OPENSSL_VERSION_NUMBER >= 0x10100000L && \
- !defined(LIBRESSL_VERSION_NUMBER)
+#if OPENSSL_VERSION_NUMBER >= 0x10100000L
# define HAVE_OPAQUE_STRUCTS 1
#endif