pub struct ClientHello<'ssl>(/* private fields */);Implementations§
Source§impl ClientHello<'_>
impl ClientHello<'_>
Sourcepub fn get_extension(&self, ext_type: ExtensionType) -> Option<&[u8]>
pub fn get_extension(&self, ext_type: ExtensionType) -> Option<&[u8]>
Returns the data of a given extension, if present.
This corresponds to SSL_early_callback_ctx_extension_get.
pub fn ssl_mut(&mut self) -> &mut SslRef
pub fn ssl(&self) -> &SslRef
Sourcepub fn servername(&self, type_: NameType) -> Option<&str>
pub fn servername(&self, type_: NameType) -> Option<&str>
Returns the servername sent by the client via Server Name Indication (SNI).
Sourcepub fn client_version(&self) -> SslVersion
pub fn client_version(&self) -> SslVersion
Returns the version sent by the client in its Client Hello record.
Sourcepub fn version_str(&self) -> &'static str
pub fn version_str(&self) -> &'static str
Returns a string describing the protocol version of the connection.