From 23bdbc68a46731b858a12669e545c9adaa1eb964 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Wed, 26 Feb 2020 19:44:39 +0100 Subject: [PATCH] Update quinn-proto/src/crypto/rustls.rs Co-Authored-By: Demi Obenour --- quinn-proto/src/crypto/rustls.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/quinn-proto/src/crypto/rustls.rs b/quinn-proto/src/crypto/rustls.rs index d52dfd71b3..46969463f5 100644 --- a/quinn-proto/src/crypto/rustls.rs +++ b/quinn-proto/src/crypto/rustls.rs @@ -167,7 +167,10 @@ pub struct AuthenticationData { /// For clients, this is the certificate chain of the server. For servers, this is the /// certificate chain of the client, if client authentication was completed. /// - /// None if this data was requested from the session before this value is available. + /// `None` if this data was requested from the session before this value is available. + /// + /// If this returns `None`, and `Connection::is_handshaking` returns `false`, the connection + /// will have already been closed. pub peer_certificates: Option, /// The negotiated application protocol pub protocol: Option>,