-
Notifications
You must be signed in to change notification settings - Fork 34
Breaking changes in upstream error types. #297
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
Comments
@jsha Do you have any thoughts on how the Lines 137 to 152 in 55df122
For e.g. A couple questions I have:
I'm trying to implement some of these changes without having had time to do a lot of reading of the existing code, or the git blame. Any guidance is welcome :-) |
Yes, please.
Yes. The error design here is more-or-less "combinatorial explosion," since I looked at the error enum in rustls at the time and decided that splitting out errors for sub-variants was reasonable in scope. For the I think sometime soonish we may want to rework errors in the FFI binding to accommodate more complex error types like |
I just noticed there was another PR that touched error content I missed in my original scan: rustls/rustls#1198 Added to the list in the PR desc. I'm almost done adapting all the changes. I might run out of time today before I have a cleaned up PR ready for review but if that happens I should have something to share early tomorrow. |
Fixed with #303 |
Uh oh!
There was an error while loading. Please reload this page.
There were several upstream breaking API changes in Rustls related to error types:
The upstream changes will have to be adapted to
error.rs
andclient.rs
.rustls::internal::msgs::enums::AlertDescription
needs to be changed to the non-internal import.InvalidCertificateEncoding
,InvalidCertificateSignatureType
,InvalidCertificateSignature
,InvalidCertificateData
,CorruptMessage
,CorruptMessagePayload
,PeerIncompatibleError
,PeerMisbehavedError
have been removed and need to be adapted to the more fine-grained error types that replaced them.The text was updated successfully, but these errors were encountered: