Skip to content

Conversation

zefir-o
Copy link

@zefir-o zefir-o commented Oct 16, 2023

No description provided.

@mcspr
Copy link
Collaborator

mcspr commented Oct 16, 2023

This way we lose last bearssl error since you delete the context obj with _freeSSL() call. You might want to save result of br_ssl_engine_last_error some place beforehand

int WiFiClientSecureCtx::getLastSSLError(char *dest, size_t len) {

@zefir-o
Copy link
Author

zefir-o commented Oct 16, 2023

This way we lose last bearssl error since you delete the context obj with _freeSSL() call. You might want to save result of br_ssl_engine_last_error some place beforehand

int WiFiClientSecureCtx::getLastSSLError(char *dest, size_t len) {

@mcspr Thank you for the hint. It was done similarly to existing code:

@d-a-v
Copy link
Collaborator

d-a-v commented Mar 25, 2024

@igor-epam What do you think of saving the content of br_ssl_engine_last_error in a "releaseSSL()" method that would also call _freeSSL() ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants