wok-current view qt4/stuff/disable-sslv3.patch @ rev 25693

Up depends pkgs for cups, need to rebuild it for ssl 3.0
author Stanislas Leduc <shann@slitaz.org>
date Sun Mar 24 15:17:37 2024 +0000 (7 months ago)
parents
children
line source
1 diff -u -r qt-everywhere-opensource-src-4.8.7/src/network/ssl/qsslsocket_openssl.cpp qt-everywhere-opensource-src-4.8.7-nossl3/src/network/ssl/qsslsocket_openssl.cpp
2 --- qt-everywhere-opensource-src-4.8.7/src/network/ssl/qsslsocket_openssl.cpp 2015-05-07 16:14:44.000000000 +0200
3 +++ qt-everywhere-opensource-src-4.8.7-nossl3/src/network/ssl/qsslsocket_openssl.cpp 2016-03-04 11:29:17.119300898 +0100
4 @@ -267,7 +267,11 @@
5 #endif
6 break;
7 case QSsl::SslV3:
8 +#ifndef OPENSSL_NO_SSL3
9 ctx = q_SSL_CTX_new(client ? q_SSLv3_client_method() : q_SSLv3_server_method());
10 +#else
11 + ctx = 0; // SSL 3 not supported by the system, but chosen deliberately -> error
12 +#endif
13 break;
14 case QSsl::SecureProtocols: // SslV2 will be disabled below
15 case QSsl::TlsV1SslV3: // SslV2 will be disabled below
16 diff -u -r qt-everywhere-opensource-src-4.8.7/src/network/ssl/qsslsocket_openssl_symbols.cpp qt-everywhere-opensource-src-4.8.7-nossl3/src/network/ssl/qsslsocket_openssl_symbols.cpp
17 --- qt-everywhere-opensource-src-4.8.7/src/network/ssl/qsslsocket_openssl_symbols.cpp 2015-05-07 16:14:44.000000000 +0200
18 +++ qt-everywhere-opensource-src-4.8.7-nossl3/src/network/ssl/qsslsocket_openssl_symbols.cpp 2016-03-04 11:28:52.806050135 +0100
19 @@ -228,13 +228,17 @@
20 #ifndef OPENSSL_NO_SSL2
21 DEFINEFUNC(const SSL_METHOD *, SSLv2_client_method, DUMMYARG, DUMMYARG, return 0, return)
22 #endif
23 +#ifndef OPENSSL_NO_SSL3
24 DEFINEFUNC(const SSL_METHOD *, SSLv3_client_method, DUMMYARG, DUMMYARG, return 0, return)
25 +#endif
26 DEFINEFUNC(const SSL_METHOD *, SSLv23_client_method, DUMMYARG, DUMMYARG, return 0, return)
27 DEFINEFUNC(const SSL_METHOD *, TLSv1_client_method, DUMMYARG, DUMMYARG, return 0, return)
28 #ifndef OPENSSL_NO_SSL2
29 DEFINEFUNC(const SSL_METHOD *, SSLv2_server_method, DUMMYARG, DUMMYARG, return 0, return)
30 #endif
31 +#ifndef OPENSSL_NO_SSL3
32 DEFINEFUNC(const SSL_METHOD *, SSLv3_server_method, DUMMYARG, DUMMYARG, return 0, return)
33 +#endif
34 DEFINEFUNC(const SSL_METHOD *, SSLv23_server_method, DUMMYARG, DUMMYARG, return 0, return)
35 DEFINEFUNC(const SSL_METHOD *, TLSv1_server_method, DUMMYARG, DUMMYARG, return 0, return)
36 #else
37 @@ -822,13 +826,17 @@
38 #ifndef OPENSSL_NO_SSL2
39 RESOLVEFUNC(SSLv2_client_method)
40 #endif
41 +#ifndef OPENSSL_NO_SSL3
42 RESOLVEFUNC(SSLv3_client_method)
43 +#endif
44 RESOLVEFUNC(SSLv23_client_method)
45 RESOLVEFUNC(TLSv1_client_method)
46 #ifndef OPENSSL_NO_SSL2
47 RESOLVEFUNC(SSLv2_server_method)
48 #endif
49 +#ifndef OPENSSL_NO_SSL3
50 RESOLVEFUNC(SSLv3_server_method)
51 +#endif
52 RESOLVEFUNC(SSLv23_server_method)
53 RESOLVEFUNC(TLSv1_server_method)
54 RESOLVEFUNC(X509_NAME_entry_count)