1

(6 replies, posted in wolfSSL)

Hi Alexander76,

Sorry for the late reply. We are still in the process of finishing up building the Qt compatibility layer and merging it into wolfSSL’s master branch. It may be better to wait for when Qt support has been fully integrated and full documentation has been released. However, If you still want to get started now, we can list the build steps for the development version and post the patch file required for Qt. If you come across any issues, please let us know and we can get them sorted out.

Clone the qtBranch of wolfSSL: https://github.com/MJSPollard/wolfssl and build the library with the following commands.

$ cd wolfssl
$ ./autogen.sh
$ ./configure --enable-qt
$ make
$ sudo make install

Now follow the instructions here: https://wiki.qt.io/Building_Qt_5_from_Git to download Qt and any needed dependencies. Use the latest Qt version and apply the git generated patch file to your Qt repository. Note that this patch file is subject to change as wolfSSL integration into Qt progresses. Now execute the following commands.

$ export QT_CONFIGS="-openssl-linked -opensource -silent -confirm-license -developer-build -no-feature-dtls" 
$ export OPENSSL_PATH="-I/usr/local/include/wolfssl -I/usr/local/include"
$ export OPENSSL_LIBS="-L/usr/local/lib -lwolfssl"
$ cd qt5
$ ./configure $QT_CONFIGS $OPENSSL_PATH
$ make
$ make install

Note: if you have installed wolfSSL somewhere else, you will have to specify the location to that directory within OPENSSL_PATH and OPENSSL_LIBS

If you want to speed up the build time and exclude building the examples and tests, you can execute the following command and then reconfigure, including the EXCLUDE_TESTS environment variable in the ./configure line.

$ export EXCLUDE_TESTS="-nomake examples -nomake tests"

To clean up after building if there are errors or you just want to reconfigure, run the following commands.

$ git submodule foreach --recursive "git clean -dfx"
$ rm config.cache

Let us know if you have any further questions!

- Mike Pollard

2

(6 replies, posted in wolfSSL)

Hi @Alexander79,

Unfortunately the method that you are currently employing will not work as you are mixing both Qt API’s and wolfSSL API’s at the application level instead of having them work together in the Qt library. However, we are currently porting the wolfSSL library to be compatible with Qt which will enable users to make calls to Qt’s API functions and have wolfSSL perform the SSL and cryptographic related tasks under the hood. The current development branch can be found here on github under the qtBranch: https://github.com/MJSPollard/wolfssl. The core functionality for the wolfSSL + Qt port is complete, we are just working on optimizing the code and handling edge case scenarios. If you would like further instruction on how to build wolfSSL with Qt to test in your application, please let us know and we can provide more information.

Best,

Michael Pollard