Differential D18582 Diff 52319 head/net/qt5-network/files/patch-src_network_ssl_qsslsocket__openssl__symbols__p.h
Changeset View
Changeset View
Standalone View
Standalone View
head/net/qt5-network/files/patch-src_network_ssl_qsslsocket__openssl__symbols__p.h
Property | Old Value | New Value |
---|---|---|
fbsd:nokeywords | null | yes \ No newline at end of property |
svn:eol-style | null | native \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
Define maximum TLS version as 1.2 so as to not hit any possibly | |||||
unsupported TLS 1.3 symbols. | |||||
Also do not define SSL_CONF_CTX symbols absent from LibreSSL. | |||||
--- src/network/ssl/qsslsocket_openssl_symbols_p.h.orig 2018-12-03 11:15:26 UTC | |||||
+++ src/network/ssl/qsslsocket_openssl_symbols_p.h | |||||
@@ -74,6 +74,13 @@ | |||||
QT_BEGIN_NAMESPACE | |||||
+#if defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER >= 0x20700000L | |||||
+# define TLS1_2_VERSION 0x0303 | |||||
+# define TLS_MAX_VERSION TLS1_2_VERSION | |||||
+# define TLS_ANY_VERSION 0x10000 | |||||
+#endif | |||||
+ | |||||
+ | |||||
#define DUMMYARG | |||||
#if !defined QT_LINKED_OPENSSL | |||||
@@ -359,7 +366,7 @@ int q_SSL_CTX_use_PrivateKey(SSL_CTX *a, EVP_PKEY *b); | |||||
int q_SSL_CTX_use_RSAPrivateKey(SSL_CTX *a, RSA *b); | |||||
int q_SSL_CTX_use_PrivateKey_file(SSL_CTX *a, const char *b, int c); | |||||
X509_STORE *q_SSL_CTX_get_cert_store(const SSL_CTX *a); | |||||
-#if OPENSSL_VERSION_NUMBER >= 0x10002000L | |||||
+#if OPENSSL_VERSION_NUMBER >= 0x10002000L && !defined(LIBRESSL_VERSION_NUMBER) | |||||
SSL_CONF_CTX *q_SSL_CONF_CTX_new(); | |||||
void q_SSL_CONF_CTX_free(SSL_CONF_CTX *a); | |||||
void q_SSL_CONF_CTX_set_ssl_ctx(SSL_CONF_CTX *a, SSL_CTX *b); |