-
Notifications
You must be signed in to change notification settings - Fork 110
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
Mqtt use tls #428
Mqtt use tls #428
Conversation
Codecov Report
@@ Coverage Diff @@
## master #428 +/- ##
=======================================
Coverage 84.98% 84.98%
=======================================
Files 41 41
Lines 6392 6392
=======================================
Hits 5432 5432
Misses 960 960 |
I accidentally merged in changes from master, which broke some tests in travis. It is fixed now and should work. |
@gnu3ra , thank you for sending the PR. I have two comments. ConclictIt seems that the PR conflict with the master. Could you rebase the PR from the up to date master? At that time, please squash commit message. You can do Consistency vs Zero configuration by defaultAt first, mqtt_cpp has only two configuration macros. They are However now we have many configuration macros and all of them except MQTT_NO_TLS are positive meaning. As you mentioned, MQTT_NO_TLS is confusing. Now we are doing breaking change for v7.0.0. I think that it is a good time to update TLS support macro. I'd like to hear @jonesmz 's opinion. *1 I know the definition of 'typical` is difficult. |
This line of code:
(Btw @gnu3ra that comment may not be accurate any longer) sets the default setting for this CMake option to "ON", which means that, unless specified on the commandline by another flag, mqtt_cpp would be compiled with TLS support. Note though that the current setting
Appears to default the library to not include TLS, because it's defaulting to "enable" "NO_TLS" Personally, I think it would be better to default MQTT_USE_TLS = off, so that mqtt_cpp has fewer dependencies for a "default" build, but I don't have a strong opinion on it. |
@jonesmz , thank you for the comment. Let's replace MQTT_NO_TLS with MQTT_USE_TLS. @gnu3ra , could you (force) update the PR? |
5f70a1f
to
9717416
Compare
…ed with other variables
Merge conflicts are resolved, and MQTT_USE_SSL defaults to no. Does this work? |
Thanks! merged. |
The MQTT_NO_TLS variable is a negative condition, where every other cmake variable is a positive condition. Change MQTT_NO_TLS to MQTT_USE_TLS to avoid confusion.