#51135: qt4-mac fails to build with libressl 2.3.3 -------------------------+------------------------- Reporter: macports@… | Owner: michaelld@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: qt4-mac | -------------------------+------------------------- Comment (by macports@…): or maybe this approach [https://wiki.freebsd.org/LibreSSL/PatchingPorts] {{{ Resolution Sometimes you will find an example for OPENSSL_NO_SSL2 in the code, do something similar for SSLv3. This tends to use #ifdef guards around the SSLv2 or SSLv3 code. Example SSLv3_server_method code ctx = SSL_CTX_new (server ? SSLv3_server_method() : SSLv3_client_method ()); Becomes #ifndef OPENSSL_NO_SSL3 ctx = SSL_CTX_new (server ? SSLv3_server_method() : SSLv3_client_method ()); #else ctx = SSL_CTX_new (server ? SSLv23_server_method() : SSLv23_client_method ()); SSL_CTX_set_options(ctx, SSL_OP_NO_TLSv1|SSL_OP_NO_SSLv2); #endif This retains compatibility with !OpenSSL 0.9.8, 1.0.0 and 1.0.1 You can use SSLv23 methods, these have been retained in LibreSSL but negotiate TLSv1, TLSv1.1 or TLSv1.2. What it will negotiate is controlled using the SSL_CTX_set_options. You will actually improve ports that you modify! }}} -- Ticket URL: <https://trac.macports.org/ticket/51135#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X