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 #333

Merged

Conversation

obiltschnig
Copy link
Contributor

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.

…sion 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>
@icraggs icraggs merged commit f32842c into eclipse:develop Sep 18, 2017
@icraggs
Copy link
Contributor

icraggs commented Sep 18, 2017

Thanks!

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

2 participants