|
easyssl 0.87.745ff01
EasySSL is base back end library for your c++ Qt projects.
|
This is wrapper library that make using OpenSSL library more simple. This library contains interfaces for the signing and encryption data.
Include in your CMakeLists.txt file the main CMakeLists.txt file of EasySSL library
Include in your .pro file the EasySSL sources directly:
```qmake
QT += core network
INCLUDEPATH += $$PWD/../easyssl/src/lib/src/public
SOURCES += \ ../easyssl/src/lib/src/public/easyssl.cpp \ ../easyssl/src/lib/src/public/easyssl/icrypto.cpp \ ../easyssl/src/lib/src/public/easyssl/ecdsassl.cpp \ ../easyssl/src/lib/src/public/easyssl/rsassl.cpp \ ../easyssl/src/lib/src/public/easyssl/x509.cpp \ ../easyssl/src/lib/src/public/easyssl/icertificate.cpp \ ../easyssl/src/lib/src/private/easysslutils.cpp
DEFINES += EASYSSL_LIBRARY
LIBS += -lcrypto -lssl ```
Note: the CMake build is the recommended way. The EasySSL library has the
EASYSSL_STATIC_SSLandBUILD_WITH_OPENSSLbuild options that are only available for the CMake build.
Dependency on the ssl library greatly complicates the deployment of the final product. For fix this issue, you can build EasySSL library with static SSL library. In this case, SSL library code will be saved in your EasySSL binary, and deploy of your application will be easily. The ssl code will not available for your application or other libraries, so you will not get conflicts between different major versions ssl libraries if your distribution kit has it.
Just set the EASYSSL_STATIC_SSL option to true.
The described case may be useful for the Qt 5.15.x, because the QNetwork 5.15 depends on the SSL v1.1 and EasySSL works with the SSL >= 3.0.
If your system (or the target device) has no OpenSSL 3.0+ library, you can build the OpenSSL library together with the EasySSL library. Just set the BUILD_WITH_OPENSSL option to true:
In this case the EasySSL project clones the OpenSSL openssl-3.0.9 sources, builds the static OpenSSL libraries and links them privately into the EasySSL binary. So your application has no runtime dependency on the system OpenSSL.
mingw32-make tool. The OpenSSL Configure script also requires a perl that produces Unix-like paths and that provides the perl core modules (for example the MSYS2 perl; set the MSYS2_ROOT environment variable to the MSYS2 installation directory if it is not found automatically).EASYSSL_OPENSSL_TAG option (default openssl-3.0.9).The unit tests of the EasySSL library are built and run by default. To disable the tests, set the EASYSSL_TESTS option to false:
More information about the build options (CMake, qmake) and the usage examples (RSA, ECDSA, X509 certificates, async authentication) is available in the docs/USAGE.md file.
See our main documentation about contributing to EasySSL
Full documentation and the API reference available on the EasySSL GitHub Pages site.