freebsd-ports/net/socat/files/patch-sslcls.h
Bernard Spil 4da3639ecf net/socat: Fix OpenSSL build issues
- While here fix CPE Vendor (NVD has dest-unreach)
  - Fix build when OpenSSL from ports was built without SSLv3 support
  - Fix build when OpenSSL is built without compression support
  - Fix build for OpenSSL 1.1.0pre without EGD support

PR:		197192
Reviewed by:	koobs (mentor), feld (mentor), ehaupt (maintainer)
Approved by:	feld (mentor), ehaupt (maintainer)
Differential Revision:	D2691
2016-05-02 21:09:31 +00:00

11 lines
449 B
C

--- sslcls.h.orig 2015-01-24 10:15:22 UTC
+++ sslcls.h
@@ -55,7 +55,7 @@ BIO *sycBIO_new_file(const char *filenam
int sycFIPS_mode_set(int onoff);
-#if OPENSSL_VERSION_NUMBER >= 0x00908000L
+#if OPENSSL_VERSION_NUMBER >= 0x00908000L && !defined(OPENSSL_NO_COMP)
const COMP_METHOD *sycSSL_get_current_compression(SSL *ssl);
const COMP_METHOD *sycSSL_get_current_expansion(SSL *ssl);
const char *sycSSL_COMP_get_name(const COMP_METHOD *comp);