Skip to content
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

Implement std::error::Error for error types #3

Closed
wants to merge 1 commit into from

Conversation

frewsxcv
Copy link
Contributor

No description provided.

@frewsxcv
Copy link
Contributor Author

std::error::Error makes it easier for developers to to interpret errors if they ever arise. I feel like some of the descriptions within the strings are pretty sloppy, so if you have any suggestions, let me know and I'll change them.

@frewsxcv frewsxcv closed this Aug 28, 2015
@frewsxcv frewsxcv deleted the errors branch August 28, 2015 01:26
@Lukazoid
Copy link

Is there any particular reason this was never merged in?

@frewsxcv
Copy link
Contributor Author

IIRC, @briansmith has reservations about using the Error trait.

bnoordhuis added a commit to bnoordhuis/webpki that referenced this pull request Sep 24, 2022
There were two bugs. webpki didn't:

1. read the X.509 Name Constraints field in its entirety, nor

2. check the certificate subject against the constraints correctly

(1) is a simple fix, (2) requires reading the Common Name from the
certificate.

Requires lifting some DER parsing logic from ring to parse UTF8String
and Set fields. Ring doesn't support those and isn't likely to in the
near future, see briansmith/ring#1265.

Closes briansmith#3.
bnoordhuis added a commit to bnoordhuis/webpki that referenced this pull request Nov 27, 2022
There were two bugs. webpki didn't:

1. read the X.509 Name Constraints field in its entirety, nor

2. check the certificate subject against the constraints correctly

(1) is a simple fix, (2) requires reading the Common Name from the
certificate.

Requires lifting some DER parsing logic from ring to parse UTF8String
and Set fields. Ring doesn't support those and isn't likely to in the
near future, see briansmith/ring#1265.

Closes briansmith#3.
lufte pushed a commit to lufte/webpki that referenced this pull request Jan 25, 2023
There were two bugs. webpki didn't:

1. read the X.509 Name Constraints field in its entirety, nor

2. check the certificate subject against the constraints correctly

(1) is a simple fix, (2) requires reading the Common Name from the
certificate.

Requires lifting some DER parsing logic from ring to parse UTF8String
and Set fields. Ring doesn't support those and isn't likely to in the
near future, see briansmith/ring#1265.

Closes briansmith#3.
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.

2 participants