mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-05-30 06:59:02 +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 hostent* entry = NULL;
|
||||
|
||||
#if CONFIG_CERT_AUTH
|
||||
uint32_t current_timestamp = 0;
|
||||
/*enable sntp for sync the time*/
|
||||
sntp_setoperatingmode(0);
|
||||
@ -70,9 +69,6 @@ static void wolfssl_client(void* pv)
|
||||
vTaskDelay(xDelay);
|
||||
} while (current_timestamp == 0);
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
while (1) {
|
||||
|
||||
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);
|
||||
#else
|
||||
wolfSSL_CTX_set_verify(ctx, WOLFSSL_VERIFY_NONE, NULL);
|
||||
ctx->verifyDepth = 0;
|
||||
#endif
|
||||
|
||||
memset(&sock_addr, 0, sizeof(sock_addr));
|
||||
|
Reference in New Issue
Block a user