Merge pull request #52 from ucloud/revert-51-bugfix_remove_unnecessary_tls_define

Revert "remove unnecessary tls define"
This commit is contained in:
ethanDu1 2020-08-12 16:44:55 +08:00 committed by GitHub
commit 9acbd58435
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

@ -74,15 +74,23 @@ 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
}
#ifdef __cplusplus
}