Ticket #51135: patch-src_network_ssl_qsslsocket_openssl.diff
File patch-src_network_ssl_qsslsocket_openssl.diff, 5.2 KB (added by kylesch@…, 8 years ago) |
---|
-
src/network/ssl/qsslsocket_openssl.cpp
old new 267 267 #endif 268 268 break; 269 269 case QSsl::SslV3: 270 #ifndef OPENSSL_NO_SSL3 270 271 ctx = q_SSL_CTX_new(client ? q_SSLv3_client_method() : q_SSLv3_server_method()); 272 #else 273 ctx = q_SSL_CTX_new(client ? q_SSLv23_client_method() : q_SSLv23_server_method()); 274 // SSL_CTX_set_options(ctx, SSL_OP_NO_TLSv1|SSL_OP_NO_SSLv2); 275 #endif 271 276 break; 272 277 case QSsl::SecureProtocols: // SslV2 will be disabled below 273 278 case QSsl::TlsV1SslV3: // SslV2 will be disabled below 274 -- src/network/ssl/qsslsocket_openssl_symbols.cpp.orig 2015-05-07 10:14:44.000000000 -0400279 ++ src/network/ssl/qsslsocket_openssl_symbols.cpp 2016-07-20 16:04:54.000000000 -0400 … … 225 225 DEFINEFUNC(void, SSL_set_connect_state, SSL *a, a, return, DUMMYARG) 226 226 DEFINEFUNC(int, SSL_shutdown, SSL *a, a, return -1, return) 227 227 #if OPENSSL_VERSION_NUMBER >= 0x10000000L 228 # ifndef OPENSSL_NO_SSL2228 # ifndef OPENSSL_NO_SSL2 229 229 DEFINEFUNC(const SSL_METHOD *, SSLv2_client_method, DUMMYARG, DUMMYARG, return 0, return) 230 #endif 230 # endif 231 # ifndef OPENSSL_NO_SSL3 231 232 DEFINEFUNC(const SSL_METHOD *, SSLv3_client_method, DUMMYARG, DUMMYARG, return 0, return) 233 # else 232 234 DEFINEFUNC(const SSL_METHOD *, SSLv23_client_method, DUMMYARG, DUMMYARG, return 0, return) 235 # endif 233 236 DEFINEFUNC(const SSL_METHOD *, TLSv1_client_method, DUMMYARG, DUMMYARG, return 0, return) 234 # ifndef OPENSSL_NO_SSL2237 # ifndef OPENSSL_NO_SSL2 235 238 DEFINEFUNC(const SSL_METHOD *, SSLv2_server_method, DUMMYARG, DUMMYARG, return 0, return) 236 #endif 239 # endif 240 # ifndef OPENSSL_NO_SSL3 237 241 DEFINEFUNC(const SSL_METHOD *, SSLv3_server_method, DUMMYARG, DUMMYARG, return 0, return) 242 # else 238 243 DEFINEFUNC(const SSL_METHOD *, SSLv23_server_method, DUMMYARG, DUMMYARG, return 0, return) 244 # endif 239 245 DEFINEFUNC(const SSL_METHOD *, TLSv1_server_method, DUMMYARG, DUMMYARG, return 0, return) 240 246 #else 241 247 DEFINEFUNC(SSL_METHOD *, SSLv2_client_method, DUMMYARG, DUMMYARG, return 0, return) 248 # ifndef OPENSSL_NO_SSL3 242 249 DEFINEFUNC(SSL_METHOD *, SSLv3_client_method, DUMMYARG, DUMMYARG, return 0, return) 250 # else 243 251 DEFINEFUNC(SSL_METHOD *, SSLv23_client_method, DUMMYARG, DUMMYARG, return 0, return) 252 # endif 244 253 DEFINEFUNC(SSL_METHOD *, TLSv1_client_method, DUMMYARG, DUMMYARG, return 0, return) 245 254 DEFINEFUNC(SSL_METHOD *, SSLv2_server_method, DUMMYARG, DUMMYARG, return 0, return) 255 # ifndef OPENSSL_NO_SSL3 246 256 DEFINEFUNC(SSL_METHOD *, SSLv3_server_method, DUMMYARG, DUMMYARG, return 0, return) 257 # else 247 258 DEFINEFUNC(SSL_METHOD *, SSLv23_server_method, DUMMYARG, DUMMYARG, return 0, return) 259 # endif 248 260 DEFINEFUNC(SSL_METHOD *, TLSv1_server_method, DUMMYARG, DUMMYARG, return 0, return) 249 261 #endif 250 262 DEFINEFUNC3(int, SSL_write, SSL *a, a, const void *b, b, int c, c, return -1, return) … … 687 699 RESOLVEFUNC(SSL_shutdown, 173, libs.first ) 688 700 RESOLVEFUNC(SSL_write, 188, libs.first ) 689 701 RESOLVEFUNC(SSLv2_client_method, 192, libs.first ) 702 #ifndef OPENSSL_NO_SSL3 690 703 RESOLVEFUNC(SSLv3_client_method, 195, libs.first ) 704 #else 691 705 RESOLVEFUNC(SSLv23_client_method, 189, libs.first ) 706 #endif 692 707 RESOLVEFUNC(TLSv1_client_method, 198, libs.first ) 693 708 RESOLVEFUNC(SSLv2_server_method, 194, libs.first ) 709 #ifndef OPENSSL_NO_SSL3 694 710 RESOLVEFUNC(SSLv3_server_method, 197, libs.first ) 711 #else 695 712 RESOLVEFUNC(SSLv23_server_method, 191, libs.first ) 713 #endif 696 714 RESOLVEFUNC(TLSv1_server_method, 200, libs.first ) 697 715 RESOLVEFUNC(SSL_CTX_load_verify_locations, 34, libs.first ) 698 716 RESOLVEFUNC(X509_NAME_entry_count, 1821, libs.second ) … … 822 840 #ifndef OPENSSL_NO_SSL2 823 841 RESOLVEFUNC(SSLv2_client_method) 824 842 #endif 843 #ifndef OPENSSL_NO_SSL3 825 844 RESOLVEFUNC(SSLv3_client_method) 845 #else 826 846 RESOLVEFUNC(SSLv23_client_method) 847 #endif 827 848 RESOLVEFUNC(TLSv1_client_method) 828 849 #ifndef OPENSSL_NO_SSL2 829 850 RESOLVEFUNC(SSLv2_server_method) 830 851 #endif 852 #ifndef OPENSSL_NO_SSL3 831 853 RESOLVEFUNC(SSLv3_server_method) 854 #else 832 855 RESOLVEFUNC(SSLv23_server_method) 856 #endif 833 857 RESOLVEFUNC(TLSv1_server_method) 834 858 RESOLVEFUNC(X509_NAME_entry_count) 835 859 RESOLVEFUNC(X509_NAME_get_entry) -
src/network/ssl/qsslsocket_openssl_symbols_p.h
old new 327 327 int q_SSL_shutdown(SSL *a); 328 328 #if OPENSSL_VERSION_NUMBER >= 0x10000000L 329 329 const SSL_METHOD *q_SSLv2_client_method(); 330 #ifndef OPENSSL_NO_SSL3 330 331 const SSL_METHOD *q_SSLv3_client_method(); 332 #else 331 333 const SSL_METHOD *q_SSLv23_client_method(); 334 #endif 332 335 const SSL_METHOD *q_TLSv1_client_method(); 333 336 const SSL_METHOD *q_SSLv2_server_method(); 337 #ifndef OPENSSL_NO_SSL3 334 338 const SSL_METHOD *q_SSLv3_server_method(); 339 #else 335 340 const SSL_METHOD *q_SSLv23_server_method(); 341 #endif 336 342 const SSL_METHOD *q_TLSv1_server_method(); 337 343 #else 338 344 SSL_METHOD *q_SSLv2_client_method(); 345 #ifndef OPENSSL_NO_SSL3 339 346 SSL_METHOD *q_SSLv3_client_method(); 347 #else 340 348 SSL_METHOD *q_SSLv23_client_method(); 349 #endif 341 350 SSL_METHOD *q_TLSv1_client_method(); 342 351 SSL_METHOD *q_SSLv2_server_method(); 352 #ifndef OPENSSL_NO_SSL3 343 353 SSL_METHOD *q_SSLv3_server_method(); 354 #else 344 355 SSL_METHOD *q_SSLv23_server_method(); 356 #endif 345 357 SSL_METHOD *q_TLSv1_server_method(); 346 358 #endif 347 359 int q_SSL_write(SSL *a, const void *b, int c);