Allow retrieving the version string from early callback

This commit is contained in:
Anthony Ramine 2021-04-13 12:03:55 +02:00
parent 6baba64eec
commit d147f155a4
1 changed files with 5 additions and 0 deletions

View File

@ -1788,6 +1788,11 @@ impl ClientHello {
pub fn servername(&self, type_: NameType) -> Option<&str> { pub fn servername(&self, type_: NameType) -> Option<&str> {
self.ssl().servername(type_) 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. /// Information about a cipher.