Source: qt4-x11 Version: 4:4.8.7+dfsg-11 Followup-For: Bug #828522 Hello,
Please try adding the attached patch, which should fix the rest of incompatibilities between qt4-x11 and OpenSSL 1.1.0. With this patch I'm able to successfully use Psi jabber client together with Qt4 built against OpenSSL 1.1.0. Also please note, that I had to apply two more fixes to build Qt4 properly (see second attachment): - In debian/rules define DEB_HOST_ARCH - In qt4-x11-4.8.7+dfsg/config.tests/unix/alsa/alsatest.cpp support libasound2 >= 1.1.0 -- With best wishes Dmitry -- System Information: Debian Release: buster/sid APT prefers testing APT policy: (500, 'testing') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.12.0-2-amd64 (SMP w/4 CPU cores) Locale: LANG=en_GB.utf8, LC_CTYPE=en_GB.utf8 (charmap=UTF-8), LANGUAGE=en_GB:en (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system)
diff -pur qt4-x11-4.8.7+dfsg-old/src/network/ssl/qsslsocket_openssl_p.h qt4-x11-4.8.7+dfsg/src/network/ssl/qsslsocket_openssl_p.h --- qt4-x11-4.8.7+dfsg-old/src/network/ssl/qsslsocket_openssl_p.h 2015-05-07 17:14:44.000000000 +0300 +++ qt4-x11-4.8.7+dfsg/src/network/ssl/qsslsocket_openssl_p.h 2017-10-14 03:09:55.942302611 +0300 @@ -84,6 +84,10 @@ #include <openssl/tls1.h> #endif +#if OPENSSL_VERSION_NUMBER >= 0x10100000L +#define OPENSSL_NO_SSL2 +#endif + #if OPENSSL_VERSION_NUMBER >= 0x10000000L typedef _STACK STACK; #endif diff -pur qt4-x11-4.8.7+dfsg-old/src/network/ssl/qsslsocket_openssl_symbols.cpp qt4-x11-4.8.7+dfsg/src/network/ssl/qsslsocket_openssl_symbols.cpp --- qt4-x11-4.8.7+dfsg-old/src/network/ssl/qsslsocket_openssl_symbols.cpp 2017-10-14 03:35:00.000000000 +0300 +++ qt4-x11-4.8.7+dfsg/src/network/ssl/qsslsocket_openssl_symbols.cpp 2017-10-14 03:26:33.356393367 +0300 @@ -117,9 +117,11 @@ DEFINEFUNC3(int, BIO_read, BIO *a, a, vo DEFINEFUNC(BIO_METHOD *, BIO_s_mem, void, DUMMYARG, return 0, return) DEFINEFUNC3(int, BIO_write, BIO *a, a, const void *b, b, int c, c, return -1, return) DEFINEFUNC(int, BN_num_bits, const BIGNUM *a, a, return 0, return) +#if OPENSSL_VERSION_NUMBER < 0x10100000L 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) +#endif DEFINEFUNC(void, CRYPTO_free, void *a, a, return, DUMMYARG) DEFINEFUNC(void, DSA_free, DSA *a, a, return, DUMMYARG) #if OPENSSL_VERSION_NUMBER < 0x00908000L @@ -157,6 +159,7 @@ DEFINEFUNC2(int, PEM_write_bio_RSA_PUBKE DEFINEFUNC2(void, RAND_seed, const void *a, a, int b, b, return, DUMMYARG) DEFINEFUNC(int, RAND_status, void, DUMMYARG, return -1, return) DEFINEFUNC(void, RSA_free, RSA *a, a, return, DUMMYARG) +#if OPENSSL_VERSION_NUMBER < 0x10100000L DEFINEFUNC(int, sk_num, STACK *a, a, return -1, return) DEFINEFUNC2(void, sk_pop_free, STACK *a, a, void (*b)(void*), b, return, DUMMYARG) #if OPENSSL_VERSION_NUMBER >= 0x10000000L @@ -166,6 +169,12 @@ DEFINEFUNC2(void *, sk_value, STACK *a, DEFINEFUNC(void, sk_free, STACK *a, a, return, DUMMYARG) DEFINEFUNC2(char *, sk_value, STACK *a, a, int b, b, return 0, return) #endif +#else +DEFINEFUNC(int, OPENSSL_sk_num, STACK *a, a, return -1, return) +DEFINEFUNC2(void, OPENSSL_sk_pop_free, STACK *a, a, void (*b)(void*), b, return, DUMMYARG) +DEFINEFUNC(void, OPENSSL_sk_free, _STACK *a, a, return, DUMMYARG) +DEFINEFUNC2(void *, OPENSSL_sk_value, STACK *a, a, int b, b, return 0, return) +#endif DEFINEFUNC(int, SSL_accept, SSL *a, a, return -1, return) DEFINEFUNC(int, SSL_clear, SSL *a, a, return -1, return) DEFINEFUNC3(char *, SSL_CIPHER_description, SSL_CIPHER *a, a, char *b, b, int c, c, return 0, return) @@ -213,8 +222,12 @@ DEFINEFUNC(long, SSL_get_verify_result, #else DEFINEFUNC(long, SSL_get_verify_result, SSL *a, a, return -1, return) #endif +#if OPENSSL_VERSION_NUMBER < 0x10100000L DEFINEFUNC(int, SSL_library_init, void, DUMMYARG, return -1, return) DEFINEFUNC(void, SSL_load_error_strings, void, DUMMYARG, return, DUMMYARG) +#else +DEFINEFUNC2(int, OPENSSL_init_ssl, uint64_t opts, opts, void *settings, settings, return -1, return) +#endif DEFINEFUNC(SSL *, SSL_new, SSL_CTX *a, a, return 0, return) #if OPENSSL_VERSION_NUMBER >= 0x0090806fL && !defined(OPENSSL_NO_TLSEXT) DEFINEFUNC4(long, SSL_ctrl, SSL *a, a, int cmd, cmd, long larg, larg, void *parg, parg, return -1, return) @@ -231,7 +244,11 @@ DEFINEFUNC(const SSL_METHOD *, SSLv2_cli #ifndef OPENSSL_NO_SSL3_METHOD DEFINEFUNC(const SSL_METHOD *, SSLv3_client_method, DUMMYARG, DUMMYARG, return 0, return) #endif +#if OPENSSL_VERSION_NUMBER < 0x10100000L DEFINEFUNC(const SSL_METHOD *, SSLv23_client_method, DUMMYARG, DUMMYARG, return 0, return) +#else +DEFINEFUNC(const SSL_METHOD *, TLS_client_method, DUMMYARG, DUMMYARG, return 0, return) +#endif DEFINEFUNC(const SSL_METHOD *, TLSv1_client_method, DUMMYARG, DUMMYARG, return 0, return) #ifndef OPENSSL_NO_SSL2 DEFINEFUNC(const SSL_METHOD *, SSLv2_server_method, DUMMYARG, DUMMYARG, return 0, return) @@ -239,7 +256,11 @@ DEFINEFUNC(const SSL_METHOD *, SSLv2_ser #ifndef OPENSSL_NO_SSL3_METHOD DEFINEFUNC(const SSL_METHOD *, SSLv3_server_method, DUMMYARG, DUMMYARG, return 0, return) #endif +#if OPENSSL_VERSION_NUMBER < 0x10100000L DEFINEFUNC(const SSL_METHOD *, SSLv23_server_method, DUMMYARG, DUMMYARG, return 0, return) +#else +DEFINEFUNC(const SSL_METHOD *, TLS_server_method, DUMMYARG, DUMMYARG, return 0, return) +#endif DEFINEFUNC(const SSL_METHOD *, TLSv1_server_method, DUMMYARG, DUMMYARG, return 0, return) #else DEFINEFUNC(SSL_METHOD *, SSLv2_client_method, DUMMYARG, DUMMYARG, return 0, return) @@ -278,7 +299,11 @@ DEFINEFUNC2(int, X509_STORE_CTX_set_purp DEFINEFUNC(int, X509_STORE_CTX_get_error, X509_STORE_CTX *a, a, return -1, return) DEFINEFUNC(int, X509_STORE_CTX_get_error_depth, X509_STORE_CTX *a, a, return -1, return) DEFINEFUNC(X509 *, X509_STORE_CTX_get_current_cert, X509_STORE_CTX *a, a, return 0, return) +#if OPENSSL_VERSION_NUMBER < 0x10100000L DEFINEFUNC(STACK_OF(X509) *, X509_STORE_CTX_get_chain, X509_STORE_CTX *a, a, return 0, return) +#else +DEFINEFUNC(STACK_OF(X509) *, X509_STORE_CTX_get0_chain, X509_STORE_CTX *a, a, return 0, return) +#endif DEFINEFUNC(X509_STORE_CTX *, X509_STORE_CTX_new, DUMMYARG, DUMMYARG, return 0, return) #ifdef SSLEAY_MACROS DEFINEFUNC2(int, i2d_DSAPrivateKey, const DSA *a, a, unsigned char **b, b, return -1, return) @@ -286,10 +311,18 @@ DEFINEFUNC2(int, i2d_RSAPrivateKey, cons DEFINEFUNC3(RSA *, d2i_RSAPrivateKey, RSA **a, a, unsigned char **b, b, long c, c, return 0, return) DEFINEFUNC3(DSA *, d2i_DSAPrivateKey, DSA **a, a, unsigned char **b, b, long c, c, return 0, return) #endif +#if OPENSSL_VERSION_NUMBER < 0x10100000L DEFINEFUNC(void, OPENSSL_add_all_algorithms_noconf, void, DUMMYARG, return, DUMMYARG) DEFINEFUNC(void, OPENSSL_add_all_algorithms_conf, void, DUMMYARG, return, DUMMYARG) +#else +DEFINEFUNC2(int, OPENSSL_init_crypto, uint64_t opts, opts, void *settings, settings, return -1, return) +#endif DEFINEFUNC3(int, SSL_CTX_load_verify_locations, SSL_CTX *ctx, ctx, const char *CAfile, CAfile, const char *CApath, CApath, return 0, return) +#if OPENSSL_VERSION_NUMBER < 0x10100000L DEFINEFUNC(long, SSLeay, void, DUMMYARG, return 0, return) +#else +DEFINEFUNC(unsigned long, OpenSSL_version_num, void, DUMMYARG, return 0, return) +#endif DEFINEFUNC(X509_STORE *, SSL_CTX_get_cert_store, const SSL_CTX *ctx, ctx, return 0, return) DEFINEFUNC(ASN1_INTEGER *, X509_get_serialNumber, X509 *x, x, return 0, return) @@ -302,8 +335,13 @@ DEFINEFUNC(long, X509_get_version, X509 DEFINEFUNC(X509_PUBKEY *, X509_get_X509_PUBKEY, X509 *x, x, return 0, return) DEFINEFUNC(int, RSA_bits, const RSA *rsa, rsa, return 0, return) DEFINEFUNC(int, DSA_security_bits, const DSA *dsa, dsa, return 0, return) +#if OPENSSL_VERSION_NUMBER < 0x10100000L DEFINEFUNC(ASN1_TIME *, X509_get_notAfter, X509 *x, x, return 0, return) DEFINEFUNC(ASN1_TIME *, X509_get_notBefore, X509 *x, x, return 0, return) +#else +DEFINEFUNC(ASN1_TIME *, X509_getm_notAfter, X509 *x, x, return 0, return) +DEFINEFUNC(ASN1_TIME *, X509_getm_notBefore, X509 *x, x, return 0, return) +#endif DEFINEFUNC4(void, DSA_get0_pqg, const DSA *d, d, BIGNUM **p, p, BIGNUM **q, q, BIGNUM **g, g, return, return) #endif @@ -600,7 +638,11 @@ bool q_resolveOpenSslSymbols() static volatile bool symbolsResolved = false; static volatile bool triedToResolveSymbols = false; #ifndef QT_NO_THREAD +#if OPENSSL_VERSION_NUMBER < 0x10100000L QMutexLocker locker(QMutexPool::globalInstanceGet((void *)&q_SSL_library_init)); +#else + QMutexLocker locker(QMutexPool::globalInstanceGet((void *)&q_OPENSSL_init_ssl)); +#endif #endif if (symbolsResolved) return true; @@ -634,9 +676,11 @@ bool q_resolveOpenSslSymbols() RESOLVEFUNC(BIO_write, 269, libs.second ) RESOLVEFUNC(BN_num_bits, 387, libs.second ) RESOLVEFUNC(CRYPTO_free, 469, libs.second ) +#if OPENSSL_VERSION_NUMBER < 0x10100000L RESOLVEFUNC(CRYPTO_num_locks, 500, libs.second ) RESOLVEFUNC(CRYPTO_set_id_callback, 513, libs.second ) RESOLVEFUNC(CRYPTO_set_locking_callback, 516, libs.second ) +#endif RESOLVEFUNC(DSA_free, 594, libs.second ) RESOLVEFUNC(ERR_error_string, 744, libs.second ) RESOLVEFUNC(ERR_get_error, 749, libs.second ) @@ -694,8 +738,10 @@ bool q_resolveOpenSslSymbols() RESOLVEFUNC(SSL_get_peer_cert_chain, 117, libs.first ) RESOLVEFUNC(SSL_get_peer_certificate, 118, libs.first ) RESOLVEFUNC(SSL_get_verify_result, 132, libs.first ) +#if OPENSSL_VERSION_NUMBER < 0x10100000L RESOLVEFUNC(SSL_library_init, 137, libs.first ) RESOLVEFUNC(SSL_load_error_strings, 139, libs.first ) +#endif RESOLVEFUNC(SSL_new, 140, libs.first ) #if OPENSSL_VERSION_NUMBER >= 0x0090806fL && !defined(OPENSSL_NO_TLSEXT) RESOLVEFUNC(SSL_ctrl, 95, libs.first ) @@ -767,9 +813,11 @@ bool q_resolveOpenSslSymbols() RESOLVEFUNC(BIO_write) RESOLVEFUNC(BN_num_bits) RESOLVEFUNC(CRYPTO_free) +#if OPENSSL_VERSION_NUMBER < 0x10100000L RESOLVEFUNC(CRYPTO_num_locks) RESOLVEFUNC(CRYPTO_set_id_callback) RESOLVEFUNC(CRYPTO_set_locking_callback) +#endif RESOLVEFUNC(DSA_free) RESOLVEFUNC(ERR_error_string) RESOLVEFUNC(ERR_get_error) @@ -799,10 +847,17 @@ bool q_resolveOpenSslSymbols() RESOLVEFUNC(RAND_seed) RESOLVEFUNC(RAND_status) RESOLVEFUNC(RSA_free) +#if OPENSSL_VERSION_NUMBER < 0x10100000L RESOLVEFUNC(sk_free) RESOLVEFUNC(sk_num) RESOLVEFUNC(sk_pop_free) RESOLVEFUNC(sk_value) +#else + RESOLVEFUNC(OPENSSL_sk_free) + RESOLVEFUNC(OPENSSL_sk_num) + RESOLVEFUNC(OPENSSL_sk_pop_free) + RESOLVEFUNC(OPENSSL_sk_value) +#endif RESOLVEFUNC(SSL_CIPHER_description) RESOLVEFUNC(SSL_CTX_check_private_key) RESOLVEFUNC(SSL_CTX_ctrl) @@ -828,8 +883,12 @@ bool q_resolveOpenSslSymbols() RESOLVEFUNC(SSL_get_peer_cert_chain) RESOLVEFUNC(SSL_get_peer_certificate) RESOLVEFUNC(SSL_get_verify_result) +#if OPENSSL_VERSION_NUMBER < 0x10100000L RESOLVEFUNC(SSL_library_init) RESOLVEFUNC(SSL_load_error_strings) +#else + RESOLVEFUNC(OPENSSL_init_ssl) +#endif RESOLVEFUNC(SSL_new) #if OPENSSL_VERSION_NUMBER >= 0x0090806fL && !defined(OPENSSL_NO_TLSEXT) RESOLVEFUNC(SSL_ctrl) @@ -853,8 +912,13 @@ bool q_resolveOpenSslSymbols() RESOLVEFUNC(RSA_bits) RESOLVEFUNC(DSA_security_bits) RESOLVEFUNC(DSA_get0_pqg) +#if OPENSSL_VERSION_NUMBER < 0x10100000L RESOLVEFUNC(X509_get_notAfter) RESOLVEFUNC(X509_get_notBefore) +#else + RESOLVEFUNC(X509_getm_notAfter) + RESOLVEFUNC(X509_getm_notBefore) +#endif #endif #ifndef OPENSSL_NO_SSL2 @@ -863,7 +927,11 @@ bool q_resolveOpenSslSymbols() #ifndef OPENSSL_NO_SSL3_METHOD RESOLVEFUNC(SSLv3_client_method) #endif +#if OPENSSL_VERSION_NUMBER < 0x10100000L RESOLVEFUNC(SSLv23_client_method) +#else + RESOLVEFUNC(TLS_client_method) +#endif RESOLVEFUNC(TLSv1_client_method) #ifndef OPENSSL_NO_SSL2 RESOLVEFUNC(SSLv2_server_method) @@ -871,7 +939,11 @@ bool q_resolveOpenSslSymbols() #ifndef OPENSSL_NO_SSL3_METHOD RESOLVEFUNC(SSLv3_server_method) #endif +#if OPENSSL_VERSION_NUMBER < 0x10100000L RESOLVEFUNC(SSLv23_server_method) +#else + RESOLVEFUNC(TLS_server_method) +#endif RESOLVEFUNC(TLSv1_server_method) RESOLVEFUNC(X509_NAME_entry_count) RESOLVEFUNC(X509_NAME_get_entry) @@ -888,7 +960,11 @@ bool q_resolveOpenSslSymbols() RESOLVEFUNC(X509_STORE_CTX_get_error) RESOLVEFUNC(X509_STORE_CTX_get_error_depth) RESOLVEFUNC(X509_STORE_CTX_get_current_cert) +#if OPENSSL_VERSION_NUMBER < 0x10100000L RESOLVEFUNC(X509_STORE_CTX_get_chain) +#else + RESOLVEFUNC(X509_STORE_CTX_get0_chain) +#endif RESOLVEFUNC(X509_cmp) #ifndef SSLEAY_MACROS RESOLVEFUNC(X509_dup) @@ -909,10 +985,18 @@ bool q_resolveOpenSslSymbols() RESOLVEFUNC(d2i_DSAPrivateKey) RESOLVEFUNC(d2i_RSAPrivateKey) #endif +#if OPENSSL_VERSION_NUMBER < 0x10100000L RESOLVEFUNC(OPENSSL_add_all_algorithms_noconf) RESOLVEFUNC(OPENSSL_add_all_algorithms_conf) +#else + RESOLVEFUNC(OPENSSL_init_crypto) +#endif RESOLVEFUNC(SSL_CTX_load_verify_locations) +#if OPENSSL_VERSION_NUMBER < 0x10100000L RESOLVEFUNC(SSLeay) +#else + RESOLVEFUNC(OpenSSL_version_num) +#endif #endif // Q_OS_SYMBIAN symbolsResolved = true; delete libs.first; diff -pur qt4-x11-4.8.7+dfsg-old/src/network/ssl/qsslsocket_openssl_symbols_p.h qt4-x11-4.8.7+dfsg/src/network/ssl/qsslsocket_openssl_symbols_p.h --- qt4-x11-4.8.7+dfsg-old/src/network/ssl/qsslsocket_openssl_symbols_p.h 2017-10-14 03:35:00.000000000 +0300 +++ qt4-x11-4.8.7+dfsg/src/network/ssl/qsslsocket_openssl_symbols_p.h 2017-10-14 03:26:32.144391234 +0300 @@ -213,9 +213,15 @@ int q_BIO_read(BIO *a, void *b, int c); BIO_METHOD *q_BIO_s_mem(); int q_BIO_write(BIO *a, const void *b, int c); int q_BN_num_bits(const BIGNUM *a); +#if OPENSSL_VERSION_NUMBER < 0x10100000L 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)()); +#else +#define q_CRYPTO_num_locks() 1 +#define q_CRYPTO_set_locking_callback(a) +#define q_CRYPTO_set_id_callback(a) +#endif void q_CRYPTO_free(void *a); void q_DSA_free(DSA *a); #if OPENSSL_VERSION_NUMBER >= 0x00908000L @@ -258,6 +264,7 @@ int q_PEM_write_bio_RSA_PUBKEY(BIO *a, R void q_RAND_seed(const void *a, int b); int q_RAND_status(); void q_RSA_free(RSA *a); +#if OPENSSL_VERSION_NUMBER < 0x10100000L int q_sk_num(STACK *a); void q_sk_pop_free(STACK *a, void (*b)(void *)); #if OPENSSL_VERSION_NUMBER >= 0x10000000L @@ -267,6 +274,16 @@ void * q_sk_value(STACK *a, int b); void q_sk_free(STACK *a); char * q_sk_value(STACK *a, int b); #endif +#else +int q_OPENSSL_sk_num(STACK *a); +void q_OPENSSL_sk_pop_free(STACK *a, void (*b)(void *)); +void q_OPENSSL_sk_free(_STACK *a); +void * q_OPENSSL_sk_value(STACK *a, int b); +#define q_sk_num q_OPENSSL_sk_num +#define q_sk_pop_free q_OPENSSL_sk_pop_free +#define q_sk_free q_OPENSSL_sk_free +#define q_sk_value q_OPENSSL_sk_value +#endif int q_SSL_accept(SSL *a); int q_SSL_clear(SSL *a); char *q_SSL_CIPHER_description(SSL_CIPHER *a, char *b, int c); @@ -314,8 +331,14 @@ long q_SSL_get_verify_result(const SSL * #else long q_SSL_get_verify_result(SSL *a); #endif +#if OPENSSL_VERSION_NUMBER < 0x10100000L int q_SSL_library_init(); void q_SSL_load_error_strings(); +#else +int q_OPENSSL_init_ssl(uint64_t opts, void *settings); +#define q_SSL_library_init() q_OPENSSL_init_ssl(0, NULL) +#define q_SSL_load_error_strings() q_OPENSSL_init_ssl(OPENSSL_INIT_LOAD_SSL_STRINGS | OPENSSL_INIT_LOAD_CRYPTO_STRINGS, NULL) +#endif SSL *q_SSL_new(SSL_CTX *a); #if OPENSSL_VERSION_NUMBER >= 0x0090806fL && !defined(OPENSSL_NO_TLSEXT) long q_SSL_ctrl(SSL *ssl,int cmd, long larg, void *parg); @@ -328,11 +351,21 @@ int q_SSL_shutdown(SSL *a); #if OPENSSL_VERSION_NUMBER >= 0x10000000L const SSL_METHOD *q_SSLv2_client_method(); const SSL_METHOD *q_SSLv3_client_method(); +#if OPENSSL_VERSION_NUMBER < 0x10100000L const SSL_METHOD *q_SSLv23_client_method(); +#else +const SSL_METHOD *q_TLS_client_method(); +#define q_SSLv23_client_method q_TLS_client_method +#endif const SSL_METHOD *q_TLSv1_client_method(); const SSL_METHOD *q_SSLv2_server_method(); const SSL_METHOD *q_SSLv3_server_method(); +#if OPENSSL_VERSION_NUMBER < 0x10100000L const SSL_METHOD *q_SSLv23_server_method(); +#else +const SSL_METHOD *q_TLS_server_method(); +#define q_SSLv23_server_method q_TLS_server_method +#endif const SSL_METHOD *q_TLSv1_server_method(); #else SSL_METHOD *q_SSLv2_client_method(); @@ -377,7 +410,12 @@ int q_X509_STORE_CTX_set_purpose(X509_ST int q_X509_STORE_CTX_get_error(X509_STORE_CTX *ctx); int q_X509_STORE_CTX_get_error_depth(X509_STORE_CTX *ctx); X509 *q_X509_STORE_CTX_get_current_cert(X509_STORE_CTX *ctx); +#if OPENSSL_VERSION_NUMBER < 0x10100000L STACK_OF(X509) *q_X509_STORE_CTX_get_chain(X509_STORE_CTX *ctx); +#else +STACK_OF(X509) *q_X509_STORE_CTX_get0_chain(X509_STORE_CTX *ctx); +#define q_X509_STORE_CTX_get_chain q_X509_STORE_CTX_get0_chain +#endif #define q_BIO_get_mem_data(b, pp) (int)q_BIO_ctrl(b,BIO_CTRL_INFO,0,(char *)pp) #define q_BIO_pending(b) (int)q_BIO_ctrl(b,BIO_CTRL_PENDING,0,NULL) @@ -433,8 +471,10 @@ void q_DSA_get0_pqg(const DSA *d, BIGNUM #define q_X509_get_notAfter(x) X509_get_notAfter(x) #define q_X509_get_notBefore(x) X509_get_notBefore(x) #else -ASN1_TIME *q_X509_get_notAfter(X509 *x); -ASN1_TIME *q_X509_get_notBefore(X509 *x); +ASN1_TIME *q_X509_getm_notAfter(X509 *x); +ASN1_TIME *q_X509_getm_notBefore(X509 *x); +#define q_X509_get_notAfter(x) q_X509_getm_notAfter(x) +#define q_X509_get_notBefore(x) q_X509_getm_notBefore(x) #endif #define q_EVP_PKEY_assign_RSA(pkey,rsa) q_EVP_PKEY_assign((pkey),EVP_PKEY_RSA,\ @@ -446,10 +486,21 @@ ASN1_TIME *q_X509_get_notBefore(X509 *x) #else #define q_OpenSSL_add_all_algorithms() q_OPENSSL_add_all_algorithms_noconf() #endif +#if OPENSSL_VERSION_NUMBER < 0x10100000L void q_OPENSSL_add_all_algorithms_noconf(); void q_OPENSSL_add_all_algorithms_conf(); +#else +int q_OPENSSL_init_crypto(uint64_t opts, void *settings); +#define q_OPENSSL_add_all_algorithms_conf() q_OPENSSL_init_crypto(OPENSSL_INIT_ADD_ALL_CIPHERS | OPENSSL_INIT_ADD_ALL_DIGESTS | OPENSSL_INIT_LOAD_CONFIG, NULL) +# define q_OPENSSL_add_all_algorithms_noconf() q_OPENSSL_init_crypto(OPENSSL_INIT_ADD_ALL_CIPHERS | OPENSSL_INIT_ADD_ALL_DIGESTS, NULL) +#endif int q_SSL_CTX_load_verify_locations(SSL_CTX *ctx, const char *CAfile, const char *CApath); +#if OPENSSL_VERSION_NUMBER < 0x10100000L long q_SSLeay(); +#else +unsigned long q_OpenSSL_version_num(); +#define q_SSLeay q_OpenSSL_version_num +#endif // Helper function class QDateTime;
diff -pur qt4-x11-4.8.7+dfsg-old/config.tests/unix/alsa/alsatest.cpp qt4-x11-4.8.7+dfsg/config.tests/unix/alsa/alsatest.cpp --- qt4-x11-4.8.7+dfsg-old/config.tests/unix/alsa/alsatest.cpp 2015-05-07 17:14:42.000000000 +0300 +++ qt4-x11-4.8.7+dfsg/config.tests/unix/alsa/alsatest.cpp 2017-10-14 02:18:20.333998823 +0300 @@ -40,7 +40,7 @@ ****************************************************************************/ #include <alsa/asoundlib.h> -#if(!(SND_LIB_MAJOR == 1 && SND_LIB_MINOR == 0 && SND_LIB_SUBMINOR >= 10)) +#if(!(SND_LIB_MAJOR == 1 && (SND_LIB_MINOR > 0 || (SND_LIB_MINOR == 0 && SND_LIB_SUBMINOR >= 10)))) #error "Alsa version found too old, require >= 1.0.10" #endif diff -pur qt4-x11-4.8.7+dfsg-old/debian/rules qt4-x11-4.8.7+dfsg/debian/rules --- qt4-x11-4.8.7+dfsg-old/debian/rules 2017-08-14 21:05:58.000000000 +0300 +++ qt4-x11-4.8.7+dfsg/debian/rules 2017-10-14 02:25:07.865924215 +0300 @@ -4,6 +4,7 @@ #export DH_VERBOSE=1 DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) +DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH) export QTDIR := $(shell pwd) export PATH := $(QTDIR)/bin:$(PATH)