23 lines
1 KiB
Diff
23 lines
1 KiB
Diff
--- ./qtbase/config.tests/unix/openssl11/openssl.cpp.orig 2018-04-24 09:59:45.918038335 +0200
|
|
+++ ./qtbase/config.tests/unix/openssl11/openssl.cpp 2018-04-24 10:01:21.255182441 +0200
|
|
@@ -42,6 +42,9 @@
|
|
#if !defined(OPENSSL_VERSION_NUMBER) || OPENSSL_VERSION_NUMBER-0 < 0x10100000L
|
|
# error "OpenSSL >= 1.1 is required"
|
|
#endif
|
|
+#ifdef LIBRESSL_VERSION_NUMBER
|
|
+# error "LibreSSL does not support all used OpenSSL-1.1 APIs yet."
|
|
+#endif
|
|
|
|
int main()
|
|
{
|
|
--- ./qtbase/src/network/ssl/qsslsocket_openssl_symbols_p.h.orig 2018-04-24 10:40:49.121761681 +0200
|
|
+++ ./qtbase/src/network/ssl/qsslsocket_openssl_symbols_p.h 2018-04-24 10:41:43.082843248 +0200
|
|
@@ -232,7 +232,7 @@ BIO *q_BIO_new_mem_buf(void *a, int b);
|
|
int q_BIO_read(BIO *a, void *b, int c);
|
|
Q_AUTOTEST_EXPORT int q_BIO_write(BIO *a, const void *b, int c);
|
|
int q_BN_num_bits(const BIGNUM *a);
|
|
-#if OPENSSL_VERSION_NUMBER >= 0x10100000L
|
|
+#if OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
|
|
int q_BN_is_word(BIGNUM *a, BN_ULONG w);
|
|
#else
|
|
// BN_is_word is implemented purely as a
|