From 234f579bd8df41167d6be97c9095b307501749d9 Mon Sep 17 00:00:00 2001 From: Johan Stokking Date: Thu, 15 Aug 2024 21:13:46 +0200 Subject: [PATCH] feat(websocket): propagate esp_tls stack error and cert verify flags --- components/esp_websocket_client/esp_websocket_client.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/esp_websocket_client/esp_websocket_client.c b/components/esp_websocket_client/esp_websocket_client.c index 4095960383..7a983d14bc 100644 --- a/components/esp_websocket_client/esp_websocket_client.c +++ b/components/esp_websocket_client/esp_websocket_client.c @@ -206,6 +206,8 @@ static esp_err_t esp_websocket_client_dispatch_event(esp_websocket_client_handle event_data.error_handle.esp_tls_last_esp_err = esp_tls_get_and_clear_last_error(esp_transport_get_error_handle(client->transport), &client->error_handle.esp_tls_stack_err, &client->error_handle.esp_tls_cert_verify_flags); + event_data.error_handle.esp_tls_stack_err = client->error_handle.esp_tls_stack_err; + event_data.error_handle.esp_tls_cert_verify_flags = client->error_handle.esp_tls_cert_verify_flags; event_data.error_handle.esp_transport_sock_errno = esp_transport_get_errno(client->transport); } event_data.error_handle.error_type = client->error_handle.error_type;