mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'fix/esp_tls_wolfssl_fix_cert_verify_v4.1' into 'release/v4.1'
esp_tls_wolfssl : fix incorrect error message after handshake fails (v4.1) See merge request espressif/esp-idf!9231
This commit is contained in:
commit
6e22f6bae9
@ -173,7 +173,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)
|
void esp_wolfssl_verify_certificate(esp_tls_t *tls)
|
||||||
{
|
{
|
||||||
int flags;
|
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 %d!", flags);
|
ESP_LOGE(TAG, "Failed to verify peer certificate %d!", flags);
|
||||||
ESP_INT_EVENT_TRACKER_CAPTURE(tls->error_handle, ERR_TYPE_WOLFSSL_CERT_FLAGS, flags);
|
ESP_INT_EVENT_TRACKER_CAPTURE(tls->error_handle, ERR_TYPE_WOLFSSL_CERT_FLAGS, flags);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user