Azure IoT common library
Dependents: STM32F746_iothub_client_sample_mqtt f767zi_mqtt iothub_client_sample_amqp iothub_client_sample_http ... more
Diff: tlsio_wolfssl.c
- Revision:
- 38:ed9c888e5e12
- Parent:
- 31:6a55d47aea41
- Child:
- 39:05674f3c9d9d
diff -r f0dc2835e9e0 -r ed9c888e5e12 tlsio_wolfssl.c --- a/tlsio_wolfssl.c Fri Dec 15 14:10:45 2017 -0800 +++ b/tlsio_wolfssl.c Wed Jan 17 08:58:29 2018 -0800 @@ -858,15 +858,15 @@ { TLS_IO_INSTANCE* tls_io_instance = (TLS_IO_INSTANCE*)tls_io; - if (strcmp("TrustedCerts", optionName) == 0) + if (strcmp(OPTION_TRUSTED_CERT, optionName) == 0) { result = process_option(&tls_io_instance->certificate, optionName, value); } - else if (strcmp(SU_OPTION_X509_CERT, optionName) == 0) + else if (strcmp(SU_OPTION_X509_CERT, optionName) == 0 || strcmp(OPTION_X509_ECC_CERT, optionName) == 0) { result = process_option(&tls_io_instance->x509certificate, optionName, value); } - else if (strcmp(SU_OPTION_X509_PRIVATE_KEY, optionName) == 0) + else if (strcmp(SU_OPTION_X509_PRIVATE_KEY, optionName) == 0 | strcmp(OPTION_X509_ECC_KEY, optionName) == 0) { result = process_option(&tls_io_instance->x509privatekey, optionName, value); }