mirror of
https://github.com/cloudflare/pingora.git
synced 2024-09-20 02:31:35 +02:00
Added some more exports used by the server example
This commit is contained in:
parent
d7be54bbb5
commit
e36e6e7194
1 changed files with 11 additions and 0 deletions
|
@ -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 {};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue