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

RiiR cert updater #44

Merged
merged 2 commits into from
Dec 27, 2023
Merged

RiiR cert updater #44

merged 2 commits into from
Dec 27, 2023

Conversation

tshepang
Copy link
Contributor

Part of #39

Copy link
Member

@cpu cpu left a 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!

@tshepang
Copy link
Contributor Author

as a sidenote, lencr.org has a new cert

Copy link
Member

@cpu cpu left a 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?

@tshepang
Copy link
Contributor Author

I done it

.get(url)
.send()?;
let tls_info: Option<&reqwest::tls::TlsInfo> = response.extensions().get();
if let Some(tls_info) = tls_info {
Copy link
Collaborator

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(_)?

Copy link
Member

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()`

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@complexspaces complexspaces merged commit 1c0e15b into rustls:main Dec 27, 2023
13 checks passed
@tshepang tshepang deleted the riir-cert-updater branch December 28, 2023 09:49
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.

4 participants