-
Notifications
You must be signed in to change notification settings - Fork 21
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
RiiR cert updater #44
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.
Thanks for picking this up!
as a sidenote, lencr.org has a new cert |
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.
Looks great, thank you. Would you mind squashing your commits into one?
Part of rustls#39
b74940a
to
aa62d0d
Compare
I done it |
.get(url) | ||
.send()?; | ||
let tls_info: Option<&reqwest::tls::TlsInfo> = response.extensions().get(); | ||
if let Some(tls_info) = tls_info { |
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.
Nit: Should we print an warning if this isn't Some(_)
?
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.
I'd propose writing it like this:
let Some(tls_info) = response.extensions().get::<&reqwest::tls::TlsInfo>() else {
anyhow::bail!("no TLS info found");
};
.. // similar for getting the peer_certificate()`
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.
Part of #39