diff --git a/src/tls_stream.rs b/src/tls_stream.rs index 03e59a9..db24ae4 100644 --- a/src/tls_stream.rs +++ b/src/tls_stream.rs @@ -72,6 +72,14 @@ impl TlsStream { { self.0.tls_server_end_point() } + + /// Returns the negotiated alpn channel binding data as defined in [RFC 5929](https://tools.ietf.org/html/rfc5929). + pub fn negotiated_alpn(&self) -> crate::Result>> + where + S: AsyncRead + AsyncWrite + Unpin, + { + self.0.negotiated_alpn() + } } #[cfg(feature = "runtime-smol")]