Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added wolfSSL Compatability for Asio #383

Closed

Conversation

MJSPollard
Copy link
Contributor

This PR enables the user to compile a program using Asio with the current version of wolfSSL instead of OpenSSL.

To build wolfSSL and configure wolfSSL for Asio use, clone the wolfSSL repo from Github and execute the following commands from the root directory.

$ ./autogen.sh
$ ./configure --enable-asio
$ make
$ sudo make install

After, to build Asio with wolfSSL to make use of the Asio unit tests, run the following commands from the asio/asio/ directory.

$ ./autogen.sh
$ ./configure --with-wolfssl=/usr/local  (change path according to where wolfSSL was installed)
$ make
$ make check

To build an application using wolfSSL with Asio, do it the same, except add #include<wolfssl/options.h> to the top of an application file that uses SSL or TLS. An example command to compile the application correctly is as follows.
g++ app.cpp -I/usr/local/include/wolfssl -lwolfssl -lpthread

For more questions or to learn more about wolfSSL please visit our website.

@chriskohlhoff
Copy link
Owner

Addressed in asio version 1.14.1.

@tomoveu
Copy link

tomoveu commented Dec 13, 2020

@chriskohlhoff could you please get attention to this?

This original PR was not cherry picked correctly and this resulted in issue #574

I assume there was a good reason not be directly merged, but the cherry pick missed a file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants