Fix binary incompatibility between openssl versions
authorShane Kearns <dbgshane@gmail.com>
Thu, 6 Dec 2012 17:03:18 +0000 (17:03 +0000)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Tue, 11 Dec 2012 17:49:57 +0000 (18:49 +0100)
commit691e78e5061d4cbc0de212d23b06c5dffddf2098
tree88795a51bfdf394aa1f80aa443fda47a5c592e7d
parent439aa67582e715ddc0ca7e30305b0c9498a71f81
Fix binary incompatibility between openssl versions

OpenSSL changed the layout of X509_STORE_CTX between 0.9 and 1.0
So we have to consider this struct as private implementation, and use
the access functions instead.

This bug would cause certificate verification problems if a different
version of openssl is loaded at runtime to the headers Qt was compiled
against.

Task-number: QTBUG-28343
Change-Id: I47fc24336f7d9c80f08f9c8ba6debc51a5591258
Reviewed-by: Richard J. Moore <rich@kde.org>
(cherry picked from commit eb2688c4c4f257d0a4d978ba4bf57d6347b15252)
src/network/ssl/qsslsocket_openssl.cpp
src/network/ssl/qsslsocket_openssl_symbols.cpp
src/network/ssl/qsslsocket_openssl_symbols_p.h