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:
parent
47c2569d89
commit
1f7edad4ce
12
security/libssh2/files/patch-src_openssl.c
Normal file
12
security/libssh2/files/patch-src_openssl.c
Normal 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();
|
12
security/libssh2/files/patch-src_openssl.h
Normal file
12
security/libssh2/files/patch-src_openssl.h
Normal 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
|
||||
|
Loading…
Reference in New Issue
Block a user