Struct tls_parser::tls::TlsClientHelloContents [−][src]
pub struct TlsClientHelloContents<'a> {
pub version: TlsVersion,
pub rand_time: u32,
pub rand_data: &'a [u8],
pub session_id: Option<&'a [u8]>,
pub ciphers: Vec<TlsCipherSuiteID>,
pub comp: Vec<TlsCompressionID>,
pub ext: Option<&'a [u8]>,
}TLS Client Hello (from TLS 1.0 to TLS 1.2)
Some fields are unparsed (for performance reasons), for ex to parse ext,
call the parse_tls_extensions function.
Fields
version: TlsVersion
TLS version of message
rand_time: u32
rand_data: &'a [u8]
session_id: Option<&'a [u8]>
ciphers: Vec<TlsCipherSuiteID>
A list of ciphers supported by client
comp: Vec<TlsCompressionID>
A list of compression methods supported by client
ext: Option<&'a [u8]>
Methods
impl<'a> TlsClientHelloContents<'a>[src]
impl<'a> TlsClientHelloContents<'a>pub fn new(
v: u16,
rt: u32,
rd: &'a [u8],
sid: Option<&'a [u8]>,
c: Vec<TlsCipherSuiteID>,
co: Vec<TlsCompressionID>,
e: Option<&'a [u8]>
) -> Self[src]
pub fn new(
v: u16,
rt: u32,
rd: &'a [u8],
sid: Option<&'a [u8]>,
c: Vec<TlsCipherSuiteID>,
co: Vec<TlsCompressionID>,
e: Option<&'a [u8]>
) -> Selfpub fn get_version(&self) -> TlsVersion[src]
pub fn get_version(&self) -> TlsVersionpub fn get_ciphers(&self) -> Vec<Option<&'static TlsCipherSuite>>[src]
pub fn get_ciphers(&self) -> Vec<Option<&'static TlsCipherSuite>>Trait Implementations
impl<'a> Clone for TlsClientHelloContents<'a>[src]
impl<'a> Clone for TlsClientHelloContents<'a>fn clone(&self) -> TlsClientHelloContents<'a>[src]
fn clone(&self) -> TlsClientHelloContents<'a>Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
fn clone_from(&mut self, source: &Self)1.0.0
[src]Performs copy-assignment from source. Read more
impl<'a> PartialEq for TlsClientHelloContents<'a>[src]
impl<'a> PartialEq for TlsClientHelloContents<'a>fn eq(&self, other: &TlsClientHelloContents<'a>) -> bool[src]
fn eq(&self, other: &TlsClientHelloContents<'a>) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &TlsClientHelloContents<'a>) -> bool[src]
fn ne(&self, other: &TlsClientHelloContents<'a>) -> boolThis method tests for !=.
impl<'a> Debug for TlsClientHelloContents<'a>[src]
impl<'a> Debug for TlsClientHelloContents<'a>Auto Trait Implementations
impl<'a> Send for TlsClientHelloContents<'a>
impl<'a> Send for TlsClientHelloContents<'a>impl<'a> Sync for TlsClientHelloContents<'a>
impl<'a> Sync for TlsClientHelloContents<'a>