pub(super) struct ExpectClientHello {
pub(super) config: Arc<ServerConfig>,
pub(super) extra_exts: Vec<ServerExtension>,
pub(super) transcript: HandshakeHashOrBuffer,
pub(super) session_id: SessionId,
pub(super) using_ems: bool,
pub(super) done_retry: bool,
pub(super) send_tickets: usize,
}
Fields§
§config: Arc<ServerConfig>
§extra_exts: Vec<ServerExtension>
§transcript: HandshakeHashOrBuffer
§session_id: SessionId
§using_ems: bool
§done_retry: bool
§send_tickets: usize
Implementations§
Source§impl ExpectClientHello
impl ExpectClientHello
pub(super) fn new( config: Arc<ServerConfig>, extra_exts: Vec<ServerExtension>, ) -> Self
Sourcepub(super) fn with_certified_key(
self,
sig_schemes: Vec<SignatureScheme>,
client_hello: &ClientHelloPayload,
m: &Message<'_>,
cx: &mut Context<'_, ServerConnectionData>,
) -> Result<Box<dyn State<ServerConnectionData> + 'static>, Error>
pub(super) fn with_certified_key( self, sig_schemes: Vec<SignatureScheme>, client_hello: &ClientHelloPayload, m: &Message<'_>, cx: &mut Context<'_, ServerConnectionData>, ) -> Result<Box<dyn State<ServerConnectionData> + 'static>, Error>
Continues handling of a ClientHello
message once config and certificate are available.
fn choose_suite_and_kx_group( &self, selected_version: ProtocolVersion, sig_key_algorithm: SignatureAlgorithm, protocol: Protocol, client_groups: &[NamedGroup], client_suites: &[CipherSuite], ) -> Result<(SupportedCipherSuite, &'static dyn SupportedKxGroup), PeerIncompatible>
Trait Implementations§
Source§impl State<ServerConnectionData> for ExpectClientHello
impl State<ServerConnectionData> for ExpectClientHello
fn handle<'m>(
self: Box<Self>,
cx: &mut Context<'_, ServerConnectionData>,
m: Message<'m>,
) -> Result<Box<dyn State<ServerConnectionData> + 'm>, Error>where
Self: 'm,
fn into_owned(self: Box<Self>) -> Box<dyn State<ServerConnectionData> + 'static>
fn export_keying_material( &self, _output: &mut [u8], _label: &[u8], _context: Option<&[u8]>, ) -> Result<(), Error>
fn extract_secrets(&self) -> Result<PartiallyExtractedSecrets, Error>
fn send_key_update_request( &mut self, _common: &mut CommonState, ) -> Result<(), Error>
fn handle_decrypt_error(&self)
Auto Trait Implementations§
impl Freeze for ExpectClientHello
impl !RefUnwindSafe for ExpectClientHello
impl Send for ExpectClientHello
impl Sync for ExpectClientHello
impl Unpin for ExpectClientHello
impl !UnwindSafe for ExpectClientHello
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more