From ae1c8f82a9ab24a3c50ca426b5148ec3535c4efd Mon Sep 17 00:00:00 2001 From: "ethan.du" Date: Wed, 12 Aug 2020 16:39:08 +0800 Subject: [PATCH] remove unnecessary tls define --- src/certs/ca.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/certs/ca.c b/src/certs/ca.c index 9e10adc..94cebaf 100644 --- a/src/certs/ca.c +++ b/src/certs/ca.c @@ -74,23 +74,15 @@ static const char *iot_https_ca_crt = \ "CAUw7C29C79Fv1C5qfPrmAESrciIxpg0X40KPMbp1ZWVbd4=\r\n" "-----END CERTIFICATE-----\r\n" }; -#endif const char *iot_ca_get() { -#ifdef SUPPORT_TLS return iot_ca_crt; -#else - return NULL; -#endif } const char *iot_https_ca_get() { -#ifdef SUPPORT_TLS return iot_https_ca_crt; -#else - return NULL; -#endif } +#endif #ifdef __cplusplus }