freebsd-ports/security/apache-xml-security-c/files/patch-xsec_enc_OpenSSL_OpenSSLSupport.cpp
Palle Girgensohn 397fc620cd Fix build with LibreSSL
PR:		232915
Submitted by:	Andreas Sommer
2018-11-03 14:22:05 +00:00

11 lines
430 B
C++

--- xsec/enc/OpenSSL/OpenSSLSupport.cpp.orig 2018-06-18 14:48:29.000000000 +0000
+++ xsec/enc/OpenSSL/OpenSSLSupport.cpp 2018-11-02 18:30:38.642471000 +0000
@@ -273,7 +273,7 @@
#endif
-#if (OPENSSL_VERSION_NUMBER < 0x10100000L)
+#if (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined(LIBRESSL_VERSION_NUMBER)
EvpEncodeCtxRAII::EvpEncodeCtxRAII() : mp_ctx(&mp_ctx_store) { };
EvpEncodeCtxRAII::~EvpEncodeCtxRAII() { }
#else