esp_tls_wolfssl: fix incorrect error message after handshake fails

pull/5628/head
Aditya Patwardhan 2020-06-17 15:52:30 +05:30
rodzic eeeaba4b8e
commit ea635c2bba
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -380,7 +380,7 @@ ssize_t esp_wolfssl_write(esp_tls_t *tls, const char *data, size_t datalen)
void esp_wolfssl_verify_certificate(esp_tls_t *tls)
{
int flags;
if ((flags = wolfSSL_get_verify_result( (WOLFSSL *)tls->priv_ssl)) != WOLFSSL_SUCCESS) {
if ((flags = wolfSSL_get_verify_result( (WOLFSSL *)tls->priv_ssl)) != X509_V_OK) {
ESP_LOGE(TAG, "Failed to verify peer certificate , returned %d!", flags);
ESP_INT_EVENT_TRACKER_CAPTURE(tls->error_handle, ERR_TYPE_WOLFSSL_CERT_FLAGS, flags);
} else {