D6665: Make kssl compile against OpenSSL 1.1.0
Daniel Vrátil
noreply at phabricator.kde.org
Thu Jul 13 00:45:33 UTC 2017
dvratil created this revision.
dvratil added a project: Frameworks.
REVISION SUMMARY
OpenSSL 1.1.0 contains some source-incompatible changes, most notably making most of the
structures opaque and introducing new getter/setter functions to modify the structures. This
patch adds some of the newly introduced functions to the KOpenSSL class and modifies the code to call them. The implementation of those newly introduced methods contains both OpenSSL < 1.1 compatible code (direct structure member access) and calls to real functions resolved from OpenSSL>= 1.1 library. Which implementation is used is decided at compile time. Some of the existing methods were renamed to match the OpenSSL 1.1 naming and to avoid conflicts with backward-compatibility names provided by OpenSSL 1.1.
KSSLCertificate::toNetscape() returns empty result when built against OpenSSL 1.1 since I wasn't able to find a proper equivalent in OpenSSL 1.1 API (and there does not seem to be any).
TEST PLAN
The code compiles under both OpenSSL 1.1 and OpenSSL 1.0.x. I did not test the actual functionality.
REPOSITORY
R239 KDELibs4Support
REVISION DETAIL
https://phabricator.kde.org/D6665
AFFECTED FILES
src/kssl/kopenssl.cpp
src/kssl/kopenssl.h
src/kssl/kssl.cpp
src/kssl/ksslcallback.c
src/kssl/ksslcertchain.cpp
src/kssl/ksslcertificate.cpp
To: dvratil, #frameworks, dfaure
Cc: #frameworks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20170713/6b49fc00/attachment.html>
More information about the Kde-frameworks-devel
mailing list