Skip to content

Commit

Permalink
Merge pull request #630 from johanstokking/fix/websocket-esp-tls-errors
Browse files Browse the repository at this point in the history
feat(websocket): propagate esp_tls stack error and cert verify flags
  • Loading branch information
euripedesrocha authored Aug 20, 2024
2 parents 7e5ac87 + 234f579 commit 60817dd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/esp_websocket_client/esp_websocket_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 60817dd

Please sign in to comment.