Skip to content

Commit

Permalink
removed unnecessary comments
Browse files Browse the repository at this point in the history
  • Loading branch information
LockedThread committed Jul 25, 2024
1 parent 4bfbc2b commit 1d1f281
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions amqprs/src/api/tls.rs
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,6 @@ impl TlsAdaptor {
let certs = rustls_pemfile::certs(&mut pem)?;

let trust_anchors = certs.into_iter().map(|cert| {
// let c = webpki::Cert::from(cert);
let der = rustls_pki_types::CertificateDer::from(cert);
let anchor = webpki::anchor_from_trusted_cert(&der).unwrap().to_owned();

Expand All @@ -104,8 +103,6 @@ impl TlsAdaptor {
}
});

// NOTE: The old rustls add_server_trust_anchors function did this
// https://github.com/rustls/rustls/blob/d1345fc39ad597e27e6355341d2b2b40c501625b/rustls/src/anchors.rs#L117-L118
root_store.roots.extend(trust_anchors);
} else {
root_store
Expand Down

0 comments on commit 1d1f281

Please sign in to comment.