mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-06-09 23:51:23 +08:00
Merge branch 'bugfix/fix_wolfssl_example_compile_error' into 'master'
fix(examples): Fix wolfssl example compile error See merge request sdk/ESP8266_RTOS_SDK!113
This commit is contained in:
@ -58,7 +58,6 @@ static void wolfssl_client(void* pv)
|
|||||||
struct sockaddr_in sock_addr;
|
struct sockaddr_in sock_addr;
|
||||||
struct hostent* entry = NULL;
|
struct hostent* entry = NULL;
|
||||||
|
|
||||||
#if CONFIG_CERT_AUTH
|
|
||||||
uint32_t current_timestamp = 0;
|
uint32_t current_timestamp = 0;
|
||||||
/*enable sntp for sync the time*/
|
/*enable sntp for sync the time*/
|
||||||
sntp_setoperatingmode(0);
|
sntp_setoperatingmode(0);
|
||||||
@ -70,9 +69,6 @@ static void wolfssl_client(void* pv)
|
|||||||
vTaskDelay(xDelay);
|
vTaskDelay(xDelay);
|
||||||
} while (current_timestamp == 0);
|
} while (current_timestamp == 0);
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
while (1) {
|
while (1) {
|
||||||
|
|
||||||
printf("Setting hostname for TLS session...\n");
|
printf("Setting hostname for TLS session...\n");
|
||||||
@ -119,7 +115,6 @@ static void wolfssl_client(void* pv)
|
|||||||
wolfSSL_CTX_set_verify(ctx, WOLFSSL_VERIFY_PEER, NULL);
|
wolfSSL_CTX_set_verify(ctx, WOLFSSL_VERIFY_PEER, NULL);
|
||||||
#else
|
#else
|
||||||
wolfSSL_CTX_set_verify(ctx, WOLFSSL_VERIFY_NONE, NULL);
|
wolfSSL_CTX_set_verify(ctx, WOLFSSL_VERIFY_NONE, NULL);
|
||||||
ctx->verifyDepth = 0;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
memset(&sock_addr, 0, sizeof(sock_addr));
|
memset(&sock_addr, 0, sizeof(sock_addr));
|
||||||
|
Reference in New Issue
Block a user