75 lines
4.6 KiB
Diff
75 lines
4.6 KiB
Diff
|
diff -Naurp old_qt/config.tests/unix/openssl11/openssl.cpp new_qt/config.tests/unix/openssl11/openssl.cpp
|
||
|
--- old_qt/config.tests/unix/openssl11/openssl.cpp 2018-09-13 13:25:10.000000000 +0900
|
||
|
+++ new_qt/config.tests/unix/openssl11/openssl.cpp 2018-10-20 08:31:20.497180387 +0900
|
||
|
@@ -39,7 +39,7 @@
|
||
|
|
||
|
#include <openssl/opensslv.h>
|
||
|
|
||
|
-#if !defined(OPENSSL_VERSION_NUMBER) || OPENSSL_VERSION_NUMBER-0 < 0x10100000L
|
||
|
+#if !defined(OPENSSL_VERSION_NUMBER) || OPENSSL_VERSION_NUMBER-0 < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
|
||
|
# error "OpenSSL >= 1.1 is required"
|
||
|
#endif
|
||
|
|
||
|
diff -Naurp old_qt/src/network/ssl/qsslcontext_openssl.cpp new_qt/src/network/ssl/qsslcontext_openssl.cpp
|
||
|
--- old_qt/src/network/ssl/qsslcontext_openssl.cpp 2018-09-13 13:25:10.000000000 +0900
|
||
|
+++ new_qt/src/network/ssl/qsslcontext_openssl.cpp 2018-10-20 08:34:24.613169930 +0900
|
||
|
@@ -248,7 +248,7 @@ void QSslContext::applyBackendConfig(QSs
|
||
|
if (sslContext->sslConfiguration.backendConfiguration().isEmpty())
|
||
|
return;
|
||
|
|
||
|
-#if OPENSSL_VERSION_NUMBER >= 0x10002000L
|
||
|
+#if OPENSSL_VERSION_NUMBER >= 0x10002000L && !defined(LIBRESSL_VERSION_NUMBER)
|
||
|
if (QSslSocket::sslLibraryVersionNumber() >= 0x10002000L) {
|
||
|
QSharedPointer<SSL_CONF_CTX> cctx(q_SSL_CONF_CTX_new(), &q_SSL_CONF_CTX_free);
|
||
|
if (cctx) {
|
||
|
diff -Naurp old_qt/src/network/ssl/qsslsocket_openssl_symbols.cpp new_qt/src/network/ssl/qsslsocket_openssl_symbols.cpp
|
||
|
--- old_qt/src/network/ssl/qsslsocket_openssl_symbols.cpp 2018-09-13 13:25:10.000000000 +0900
|
||
|
+++ new_qt/src/network/ssl/qsslsocket_openssl_symbols.cpp 2018-10-20 08:37:48.682266708 +0900
|
||
|
@@ -406,7 +406,7 @@ DEFINEFUNC2(int, SSL_CTX_use_PrivateKey,
|
||
|
DEFINEFUNC2(int, SSL_CTX_use_RSAPrivateKey, SSL_CTX *a, a, RSA *b, b, return -1, return)
|
||
|
DEFINEFUNC3(int, SSL_CTX_use_PrivateKey_file, SSL_CTX *a, a, const char *b, b, int c, c, return -1, return)
|
||
|
DEFINEFUNC(X509_STORE *, SSL_CTX_get_cert_store, const SSL_CTX *a, a, return 0, return)
|
||
|
-#if OPENSSL_VERSION_NUMBER >= 0x10002000L
|
||
|
+#if OPENSSL_VERSION_NUMBER >= 0x10002000L && !defined(LIBRESSL_VERSION_NUMBER)
|
||
|
DEFINEFUNC(SSL_CONF_CTX *, SSL_CONF_CTX_new, DUMMYARG, DUMMYARG, return 0, return);
|
||
|
DEFINEFUNC(void, SSL_CONF_CTX_free, SSL_CONF_CTX *a, a, return ,return);
|
||
|
DEFINEFUNC2(void, SSL_CONF_CTX_set_ssl_ctx, SSL_CONF_CTX *a, a, SSL_CTX *b, b, return, return);
|
||
|
diff -Naurp old_qt/src/network/ssl/qsslsocket_openssl_symbols_p.h new_qt/src/network/ssl/qsslsocket_openssl_symbols_p.h
|
||
|
--- old_qt/src/network/ssl/qsslsocket_openssl_symbols_p.h 2018-09-13 13:25:10.000000000 +0900
|
||
|
+++ new_qt/src/network/ssl/qsslsocket_openssl_symbols_p.h 2018-10-20 08:39:53.219936039 +0900
|
||
|
@@ -356,7 +356,7 @@ int q_SSL_CTX_use_PrivateKey(SSL_CTX *a,
|
||
|
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);
|
||
|
--- a/src/network/ssl/qsslsocket_openssl_symbols.cpp
|
||
|
+++ b/src/network/ssl/qsslsocket_openssl_symbols.cpp
|
||
|
@@ -190,8 +190,8 @@ DEFINEFUNC3(void *, ASN1_dup, i2d_of_void *a, a, d2i_of_void *b, b, char *c, c,
|
||
|
#endif
|
||
|
DEFINEFUNC2(BIO *, BIO_new_file, const char *filename, filename, const char *mode, mode, return 0, return)
|
||
|
DEFINEFUNC(void, ERR_clear_error, DUMMYARG, DUMMYARG, return, DUMMYARG)
|
||
|
-DEFINEFUNC(BIO *, BIO_new, BIO_METHOD *a, a, return 0, return)
|
||
|
-DEFINEFUNC(BIO_METHOD *, BIO_s_mem, void, DUMMYARG, return 0, return)
|
||
|
+DEFINEFUNC(BIO *, BIO_new, const BIO_METHOD *a, a, return 0, return)
|
||
|
+DEFINEFUNC(const BIO_METHOD *, BIO_s_mem, void, DUMMYARG, return 0, return)
|
||
|
DEFINEFUNC(int, CRYPTO_num_locks, DUMMYARG, DUMMYARG, return 0, return)
|
||
|
DEFINEFUNC(void, CRYPTO_set_locking_callback, void (*a)(int, int, const char *, int), a, return, DUMMYARG)
|
||
|
DEFINEFUNC(void, CRYPTO_set_id_callback, unsigned long (*a)(), a, return, DUMMYARG)
|
||
|
--- a/src/network/ssl/qsslsocket_opensslpre11_symbols_p.h
|
||
|
+++ b/src/network/ssl/qsslsocket_opensslpre11_symbols_p.h
|
||
|
@@ -78,8 +78,8 @@
|
||
|
unsigned char * q_ASN1_STRING_data(ASN1_STRING *a);
|
||
|
BIO *q_BIO_new_file(const char *filename, const char *mode);
|
||
|
void q_ERR_clear_error();
|
||
|
-Q_AUTOTEST_EXPORT BIO *q_BIO_new(BIO_METHOD *a);
|
||
|
-Q_AUTOTEST_EXPORT BIO_METHOD *q_BIO_s_mem();
|
||
|
+Q_AUTOTEST_EXPORT BIO *q_BIO_new(const BIO_METHOD *a);
|
||
|
+Q_AUTOTEST_EXPORT const BIO_METHOD *q_BIO_s_mem();
|
||
|
int q_CRYPTO_num_locks();
|
||
|
void q_CRYPTO_set_locking_callback(void (*a)(int, int, const char *, int));
|
||
|
void q_CRYPTO_set_id_callback(unsigned long (*a)());
|