-
Notifications
You must be signed in to change notification settings - Fork 33
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
error: adapt rustls_result for upstream changes. #303
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jsha Here's where I have to stop for the day. I self-reviewed to call out a couple places I know I've missed the mark. Hoping that this is a helpful start. I will iterate further tomorrow.
7c2b6ba
to
d0e4af9
Compare
d0e4af9
to
2f9b3d4
Compare
2f9b3d4
to
c02b806
Compare
c02b806
to
96e62ba
Compare
This commit adapts the `rustls_result` enum based on the changes upstream. Notably the `CertInvalidEncoding`, `CertInvalidSignatureType` and `CertInvalidData` errors have been folded into a new `CertificateError` enum that we expand out into its possible variants. Similarly the `CorruptMessage` and `CorruptMessagePayload` types have been replaced by a `InvalidMessage` enum that we expand out.
96e62ba
to
fe82f27
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice! 🎉
This commit adapts the `rustls_result` enum based on the changes upstream. Notably the `CertInvalidEncoding`, `CertInvalidSignatureType` and `CertInvalidData` errors have been folded into a new `CertificateError` enum that we expand out into its possible variants. Similarly the `CorruptMessage` and `CorruptMessagePayload` types have been replaced by a `InvalidMessage` enum that we expand out.
This commit adapts the
rustls_result
enum based on the changes upstream. Notably theCertInvalidEncoding
,CertInvalidSignatureType
andCertInvalidData
errors have been folded into a newCertificateError
enum that we expand out into its possible variants. Similarly theCorruptMessage
andCorruptMessagePayload
types have been replaced by aInvalidMessage
enum that we expand out.Resolves #297.