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
Add support for X509_load_cert_file #1740
Add support for X509_load_cert_file #1740
Conversation
4f964e6
to
6b43fae
Compare
openssl/src/x509/store.rs
Outdated
/// Marker type corresponding to the [`X509_LOOKUP_file`] lookup method. | ||
/// | ||
/// [`X509_LOOKUP_file`]: https://www.openssl.org/docs/man1.1.1/man3/X509_LOOKUP_file.html | ||
pub struct ASN1; |
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.
Why is this called ASN1
and not e.g. File
?
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.
Thank you for pointing that out, that was a reference that I didn't replace with the appropriate name when creating the PR. I've updated the name to be File
to match the HashDir
struct above
6b43fae
to
7e78751
Compare
openssl/src/x509/store.rs
Outdated
impl X509LookupRef<File> { | ||
#[corresponds(X509_load_cert_file)] | ||
/// Specifies a file from which certificates will be loaded | ||
pub fn load_cert_file(&mut self, file: &str, file_type: SslFiletype) -> Result<(), ErrorStack> { |
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.
The type of file
should be impl AsRef<Path>
like here: https://docs.rs/openssl/latest/src/openssl/ssl/mod.rs.html#902-912
LGTM other than the method signature! |
7e78751
to
5ae938e
Compare
Thanks! |
No description provided.