Added some more exports used by the server example

This commit is contained in:
Wladimir Palant 2024-06-12 00:31:26 +02:00
parent d7be54bbb5
commit e36e6e7194

View file

@ -173,6 +173,14 @@ pub mod ssl {
) -> Result<(), ErrorStack> {
panic!("Not implemented");
}
/// Sets the maximum supported protocol version.
pub fn set_max_proto_version(
&mut self,
_version: Option<SslVersion>,
) -> Result<(), ErrorStack> {
panic!("Not implemented");
}
}
/// Reference to an [`SslCipher`].
@ -375,6 +383,9 @@ pub mod ssl {
/// TLSv1.0
pub const TLS1: SslVersion = Self {};
/// TLSv1.2
pub const TLS1_2: SslVersion = Self {};
/// TLSv1.3
pub const TLS1_3: SslVersion = Self {};
}