Skip to content

Commit

Permalink
Added some more exports used by the server example
Browse files Browse the repository at this point in the history
  • Loading branch information
palant committed Jun 11, 2024
1 parent d7be54b commit e36e6e7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pingora-core/src/tls/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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`].
Expand Down Expand Up @@ -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 {};
}
Expand Down

0 comments on commit e36e6e7

Please sign in to comment.