Trait ClientHello

Source
pub trait ClientHello<'a> {
    // Required methods
    fn version(&self) -> TlsVersion;
    fn random(&self) -> &'a [u8] ;
    fn session_id(&self) -> Option<&'a [u8]>;
    fn ciphers(&self) -> &Vec<TlsCipherSuiteID>;
    fn comp(&self) -> &Vec<TlsCompressionID>;
    fn ext(&self) -> Option<&'a [u8]>;

    // Provided methods
    fn rand_time(&self) -> u32 { ... }
    fn rand_bytes(&self) -> &'a [u8]  { ... }
    fn cipher_suites(&self) -> Vec<Option<&'static TlsCipherSuite>> { ... }
}
Expand description

A trait that both TLS & DTLS satisfy

Required Methods§

Source

fn version(&self) -> TlsVersion

TLS version of message

Source

fn random(&self) -> &'a [u8]

Source

fn session_id(&self) -> Option<&'a [u8]>

Source

fn ciphers(&self) -> &Vec<TlsCipherSuiteID>

A list of ciphers supported by client

Source

fn comp(&self) -> &Vec<TlsCompressionID>

A list of compression methods supported by client

Source

fn ext(&self) -> Option<&'a [u8]>

Provided Methods§

Source

fn rand_time(&self) -> u32

Source

fn rand_bytes(&self) -> &'a [u8]

Source

fn cipher_suites(&self) -> Vec<Option<&'static TlsCipherSuite>>

Implementors§