From 534f43c2233505acf3a77b2f68cb3bd9c71c120b Mon Sep 17 00:00:00 2001 From: Sergio Benitez Date: Tue, 20 Jul 2021 14:56:28 -0700 Subject: [PATCH] Point to 'mtls::Certificate' in mTLS config docs. --- core/lib/src/config/tls.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/lib/src/config/tls.rs b/core/lib/src/config/tls.rs index 556c6b59..3c833a0a 100644 --- a/core/lib/src/config/tls.rs +++ b/core/lib/src/config/tls.rs @@ -153,6 +153,9 @@ pub struct TlsConfig { /// rocket::custom(config) /// } /// ``` +/// +/// Once mTLS is configured, the [`mtls::Certificate`](crate::mtls::Certificate) +/// request guard can be used to retrieve client certificates in routes. #[derive(PartialEq, Debug, Clone, Deserialize, Serialize)] #[cfg(feature = "mtls")] #[cfg_attr(nightly, doc(cfg(feature = "mtls")))]