-
Notifications
You must be signed in to change notification settings - Fork 111
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
Support for gnutls #662
Comments
I think your best path to success for getting support for this merged is going to be to isolate the logic for handling which SSL library to use into a single header file. Basically just take the stuff you specified in your initial comment here, and put that into ssl_implementation.h, or something similar. But I don't see why the changes you're proposing would be rejected. This seems like a very useful thing to have. Further, it also helps with regards to using wolfssl, which is useful for embedded contexts like OpenWRT. |
@shantanu1singh, I'm not sure why you want to use gnutls. Do you send a pull request for Boost.Asio to support gnutls ? If you did it, please let me know the link of the pull request. This is another point that the license of gnutls is LGPL. It is more constrained licence that Boost license. I don't want to contain LGPL code as the submodule of mqtt_cpp. I'm not sure how Boost.Asio treat the license issue well. Anyway, I want to keep that mqtt_cpp simply use Boost style. |
@jonesmz With respect to moving the logic to a separate header, I can do that. @redboltz I'm using mqtt_cpp in a project and our customer is hesitant to use the OpenSSL ssleay license Boost.Asio doesn't support gnutls right now. This repository provides a GnuTls wrapper for Boost.Asio and it uses the Boost license (Not LGPL) With the proposed change, there won't be any explicit If you don't like the idea of using a git submodule, could we instead just add instructions in the ReadMe or in the wiki to tell potential users that if they wish to use GnuTLS with |
@shantanu1singh , I understand your situation. I accept
Please don't use negative condition with else clause. See https://github.com/redboltz/mqtt_cpp/wiki/Coding-Rules https://github.com/paullouisageneau/boost-asio-gnutls
submodule vs outside I think that outside file is better for this situation. If user wants to use gnutls, user need to prepare gnutls as the outside module. Similarly, https://github.com/paullouisageneau/boost-asio-gnutls too. Just install it to the system include path or add compiler option for adding include path. |
Will do
Yes,
That works. I can add instructions to the ReadMe in |
Thank you for elaborating. I understand. Replacing existing
I think that https://github.com/redboltz/mqtt_cpp/wiki/Config is appropriate place. In addition, you can add something at TLS support table on README.md. |
Currently OpenSSL 3.0.0 and higher is under Apache license. |
I was able to leverage a fork that I'll try to get merged of this repository (with minimal changes), to support the use of gnutls instead of OpenSSL with the
mqtt_cpp
library.Would the owners be accepting of a pull-request that adds support for gnutls using this other repository 'as a reference in docs' or a git submodule?
The changes I've had to make have primarily been the following across files in the
mqtt_cpp
repo:The text was updated successfully, but these errors were encountered: