-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added function rustls_connection_last_error_msg #556
base: main
Are you sure you want to change the base?
Conversation
- update rustls.h using cbindgen - fix formatting issue
Hi there, thanks for the patch. Can you expand a little bit on the motivation? My assumption is that the various connection APIs already return a |
Hi, the problem is that from The original exception message was for me very useful while debugging. It is also very useful for example in error dialogs, because instead of showing generic message like this:
I can get this message:
As an example where the original exception message helped me a lot with debugging was the case of calling function
Instead of this generic EIO error I was able to get the information, that plaintext buffer is full, which was crucial for me. |
Ahh! Thank you, I understand now. We discussed this topic a bit in #375 I think the direction you're heading is similar to what Ctz proposed there:
|
But note that some types already store the last error (in order to fuse the state), so not sure just storing an extra field is the best solution here. |
Hello,
I'm using rustls-ffi for an experimental project to implement TLS in an ERP system written in Delphi. One challenge I've encountered is the lack of detailed error messages.
This patch allows me to obtain the last error message originating from rustl_connection_ functions.
Regards,
Tom Stejskal