diff --git a/boring/src/ssl/mod.rs b/boring/src/ssl/mod.rs index 7d0d5f89..50d2b059 100644 --- a/boring/src/ssl/mod.rs +++ b/boring/src/ssl/mod.rs @@ -1788,6 +1788,11 @@ impl ClientHello { pub fn servername(&self, type_: NameType) -> Option<&str> { self.ssl().servername(type_) } + + /// Returns a string describing the protocol version of the session. + pub fn version_str(&self) -> &'static str { + self.ssl().version_str() + } } /// Information about a cipher.