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

Add support for selecting/enforcing a TLS version #329

Conversation

obiltschnig
Copy link
Contributor

@obiltschnig obiltschnig commented Sep 10, 2017

Add support for selecting/enforcing a TLS version through a new sslVersion field in the MQTTClient_SSLOptions struct. This affects which *_client_method() function is called in SSLSocket.c:

  • 0 (MQTT_SSL_VERSION_DEFAULT) -> SSLv23_client_method()
  • 1 (MQTT_SSL_VERSION_TLS_1_0) -> TLSv1_client_method()
  • 2 (MQTT_SSL_VERSION_TLS_1_1) -> TLSv1_1_client_method()
  • 3 (MQTT_SSL_VERSION_TLS_1_2) -> TLSv1_2_client_method()

We use this in macchina.io.

…rsion' field in the MQTTClient_SSLOptions structure. This affects which *_client_method() function is called in SSLSocket.c: 0 (default) -> SSLv23_client_method(), 1 -> TLSv1_client_method(), 2 -> TLSv1_1_client_method(), 3 -> TLSv1_2_client_method()
…rsion' field in the MQTTClient_SSLOptions structure. This affects which *_client_method() function is called in SSLSocket.c: 0 (default) -> SSLv23_client_method(), 1 -> TLSv1_client_method(), 2 -> TLSv1_1_client_method(), 3 -> TLSv1_2_client_method()

Signed-off-by: Günter Obiltschnig <guenter.obiltschnig@appinf.com>
@obiltschnig obiltschnig changed the title Feature/ssl allow tls version selection Add support for selecting/enforcing a TLS version Sep 10, 2017
@yegorich yegorich mentioned this pull request Sep 14, 2017
@jellevdg3
Copy link

Fixes #332.

@icraggs
Copy link
Contributor

icraggs commented Sep 14, 2017

Hello. Thanks for this PR. For me to merge it, the IP issue will have to be fixed:

"The following users have invalid Signed-off-by footers. Please use the Signed-Off-By (git commit -s) mechanism to confirm the origin of the submission. The identity in the Signed-off-By must match the Author or the Committer.
guenter.obiltschnig@appinf.com"

@obiltschnig
Copy link
Contributor Author

Created a new pull request: #333

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.

None yet

3 participants