Struct openssl::ssl::ExtensionContext [−]
pub struct ExtensionContext { /* fields omitted */ }Which messages and under which conditions an extension should be added or expected.
Methods
impl ExtensionContext
impl ExtensionContextpub const TLS_ONLY: ExtensionContext
TLS_ONLY: ExtensionContext = ExtensionContext{bits: ffi::SSL_EXT_TLS_ONLY,}
This extension is only allowed in TLS
pub const DTLS_ONLY: ExtensionContext
DTLS_ONLY: ExtensionContext = ExtensionContext{bits: ffi::SSL_EXT_DTLS_ONLY,}
This extension is only allowed in DTLS
pub const TLS_IMPLEMENTATION_ONLY: ExtensionContext
TLS_IMPLEMENTATION_ONLY: ExtensionContext = ExtensionContext{bits: ffi::SSL_EXT_TLS_IMPLEMENTATION_ONLY,}
Some extensions may be allowed in DTLS but we don't implement them for it
pub const SSL3_ALLOWED: ExtensionContext
SSL3_ALLOWED: ExtensionContext = ExtensionContext{bits: ffi::SSL_EXT_SSL3_ALLOWED,}
Most extensions are not defined for SSLv3 but EXT_TYPE_renegotiate is
pub const TLS1_2_AND_BELOW_ONLY: ExtensionContext
TLS1_2_AND_BELOW_ONLY: ExtensionContext = ExtensionContext{bits: ffi::SSL_EXT_TLS1_2_AND_BELOW_ONLY,}
Extension is only defined for TLS1.2 and below
pub const TLS1_3_ONLY: ExtensionContext
TLS1_3_ONLY: ExtensionContext = ExtensionContext{bits: ffi::SSL_EXT_TLS1_3_ONLY,}
Extension is only defined for TLS1.3 and above
pub const IGNORE_ON_RESUMPTION: ExtensionContext
IGNORE_ON_RESUMPTION: ExtensionContext = ExtensionContext{bits: ffi::SSL_EXT_IGNORE_ON_RESUMPTION,}
Ignore this extension during parsing if we are resuming
pub const CLIENT_HELLO: ExtensionContext
CLIENT_HELLO: ExtensionContext = ExtensionContext{bits: ffi::SSL_EXT_CLIENT_HELLO,}
pub const TLS1_2_SERVER_HELLO: ExtensionContext
TLS1_2_SERVER_HELLO: ExtensionContext = ExtensionContext{bits: ffi::SSL_EXT_TLS1_2_SERVER_HELLO,}
Really means TLS1.2 or below
pub const TLS1_3_SERVER_HELLO: ExtensionContext
TLS1_3_SERVER_HELLO: ExtensionContext = ExtensionContext{bits: ffi::SSL_EXT_TLS1_3_SERVER_HELLO,}
pub const TLS1_3_ENCRYPTED_EXTENSIONS: ExtensionContext
TLS1_3_ENCRYPTED_EXTENSIONS: ExtensionContext = ExtensionContext{bits: ffi::SSL_EXT_TLS1_3_ENCRYPTED_EXTENSIONS,}
pub const TLS1_3_HELLO_RETRY_REQUEST: ExtensionContext
TLS1_3_HELLO_RETRY_REQUEST: ExtensionContext = ExtensionContext{bits: ffi::SSL_EXT_TLS1_3_HELLO_RETRY_REQUEST,}
pub const TLS1_3_CERTIFICATE: ExtensionContext
TLS1_3_CERTIFICATE: ExtensionContext = ExtensionContext{bits: ffi::SSL_EXT_TLS1_3_CERTIFICATE,}
pub const TLS1_3_NEW_SESSION_TICKET: ExtensionContext
TLS1_3_NEW_SESSION_TICKET: ExtensionContext = ExtensionContext{bits: ffi::SSL_EXT_TLS1_3_NEW_SESSION_TICKET,}
pub const TLS1_3_CERTIFICATE_REQUEST: ExtensionContext
TLS1_3_CERTIFICATE_REQUEST: ExtensionContext = ExtensionContext{bits: ffi::SSL_EXT_TLS1_3_CERTIFICATE_REQUEST,}
pub fn empty() -> ExtensionContext
pub fn empty() -> ExtensionContextReturns an empty set of flags.
pub fn all() -> ExtensionContext
pub fn all() -> ExtensionContextReturns the set containing all flags.
pub fn bits(&self) -> c_uint
pub fn bits(&self) -> c_uintReturns the raw value of the flags currently stored.
pub fn from_bits(bits: c_uint) -> Option<ExtensionContext>
pub fn from_bits(bits: c_uint) -> Option<ExtensionContext>Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.
pub fn from_bits_truncate(bits: c_uint) -> ExtensionContext
pub fn from_bits_truncate(bits: c_uint) -> ExtensionContextConvert from underlying bit representation, dropping any bits that do not correspond to flags.
pub fn is_empty(&self) -> bool
pub fn is_empty(&self) -> boolReturns true if no flags are currently stored.
pub fn is_all(&self) -> bool
pub fn is_all(&self) -> boolReturns true if all flags are currently set.
pub fn intersects(&self, other: ExtensionContext) -> bool
pub fn intersects(&self, other: ExtensionContext) -> boolReturns true if there are flags common to both self and other.
pub fn contains(&self, other: ExtensionContext) -> bool
pub fn contains(&self, other: ExtensionContext) -> boolReturns true all of the flags in other are contained within self.
pub fn insert(&mut self, other: ExtensionContext)
pub fn insert(&mut self, other: ExtensionContext)Inserts the specified flags in-place.
pub fn remove(&mut self, other: ExtensionContext)
pub fn remove(&mut self, other: ExtensionContext)Removes the specified flags in-place.
pub fn toggle(&mut self, other: ExtensionContext)
pub fn toggle(&mut self, other: ExtensionContext)Toggles the specified flags in-place.
pub fn set(&mut self, other: ExtensionContext, value: bool)
pub fn set(&mut self, other: ExtensionContext, value: bool)Inserts or removes the specified flags depending on the passed value.
Trait Implementations
impl Copy for ExtensionContext
impl Copy for ExtensionContextimpl PartialEq for ExtensionContext
impl PartialEq for ExtensionContextfn eq(&self, other: &ExtensionContext) -> bool
fn eq(&self, other: &ExtensionContext) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &ExtensionContext) -> bool
fn ne(&self, other: &ExtensionContext) -> boolThis method tests for !=.
impl Eq for ExtensionContext
impl Eq for ExtensionContextimpl Clone for ExtensionContext
impl Clone for ExtensionContextfn clone(&self) -> ExtensionContext
fn clone(&self) -> ExtensionContextReturns 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)Performs copy-assignment from source. Read more
impl PartialOrd for ExtensionContext
impl PartialOrd for ExtensionContextfn partial_cmp(&self, other: &ExtensionContext) -> Option<Ordering>
fn partial_cmp(&self, other: &ExtensionContext) -> Option<Ordering>This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &ExtensionContext) -> bool
fn lt(&self, other: &ExtensionContext) -> boolThis method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &ExtensionContext) -> bool
fn le(&self, other: &ExtensionContext) -> boolThis method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &ExtensionContext) -> bool
fn gt(&self, other: &ExtensionContext) -> boolThis method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &ExtensionContext) -> bool
fn ge(&self, other: &ExtensionContext) -> boolThis method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Ord for ExtensionContext
impl Ord for ExtensionContextfn cmp(&self, other: &ExtensionContext) -> Ordering
fn cmp(&self, other: &ExtensionContext) -> OrderingThis method returns an Ordering between self and other. Read more
fn max(self, other: Self) -> Self1.21.0[src]
fn max(self, other: Self) -> SelfCompares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
fn min(self, other: Self) -> SelfCompares and returns the minimum of two values. Read more
impl Hash for ExtensionContext
impl Hash for ExtensionContextfn hash<__H: Hasher>(&self, state: &mut __H)
fn hash<__H: Hasher>(&self, state: &mut __H)Feeds this value into the given [Hasher]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, Feeds a slice of this type into the given [Hasher]. Read more
impl Debug for ExtensionContext
impl Debug for ExtensionContextimpl Binary for ExtensionContext
impl Binary for ExtensionContextimpl Octal for ExtensionContext
impl Octal for ExtensionContextimpl LowerHex for ExtensionContext
impl LowerHex for ExtensionContextimpl UpperHex for ExtensionContext
impl UpperHex for ExtensionContextimpl BitOr for ExtensionContext
impl BitOr for ExtensionContexttype Output = ExtensionContext
The resulting type after applying the | operator.
fn bitor(self, other: ExtensionContext) -> ExtensionContext
fn bitor(self, other: ExtensionContext) -> ExtensionContextReturns the union of the two sets of flags.
impl BitOrAssign for ExtensionContext
impl BitOrAssign for ExtensionContextfn bitor_assign(&mut self, other: ExtensionContext)
fn bitor_assign(&mut self, other: ExtensionContext)Adds the set of flags.
impl BitXor for ExtensionContext
impl BitXor for ExtensionContexttype Output = ExtensionContext
The resulting type after applying the ^ operator.
fn bitxor(self, other: ExtensionContext) -> ExtensionContext
fn bitxor(self, other: ExtensionContext) -> ExtensionContextReturns the left flags, but with all the right flags toggled.
impl BitXorAssign for ExtensionContext
impl BitXorAssign for ExtensionContextfn bitxor_assign(&mut self, other: ExtensionContext)
fn bitxor_assign(&mut self, other: ExtensionContext)Toggles the set of flags.
impl BitAnd for ExtensionContext
impl BitAnd for ExtensionContexttype Output = ExtensionContext
The resulting type after applying the & operator.
fn bitand(self, other: ExtensionContext) -> ExtensionContext
fn bitand(self, other: ExtensionContext) -> ExtensionContextReturns the intersection between the two sets of flags.
impl BitAndAssign for ExtensionContext
impl BitAndAssign for ExtensionContextfn bitand_assign(&mut self, other: ExtensionContext)
fn bitand_assign(&mut self, other: ExtensionContext)Disables all flags disabled in the set.
impl Sub for ExtensionContext
impl Sub for ExtensionContexttype Output = ExtensionContext
The resulting type after applying the - operator.
fn sub(self, other: ExtensionContext) -> ExtensionContext
fn sub(self, other: ExtensionContext) -> ExtensionContextReturns the set difference of the two sets of flags.
impl SubAssign for ExtensionContext
impl SubAssign for ExtensionContextfn sub_assign(&mut self, other: ExtensionContext)
fn sub_assign(&mut self, other: ExtensionContext)Disables all flags enabled in the set.
impl Not for ExtensionContext
impl Not for ExtensionContexttype Output = ExtensionContext
The resulting type after applying the ! operator.
fn not(self) -> ExtensionContext
fn not(self) -> ExtensionContextReturns the complement of this set of flags.
impl Extend<ExtensionContext> for ExtensionContext
impl Extend<ExtensionContext> for ExtensionContextfn extend<T: IntoIterator<Item = ExtensionContext>>(&mut self, iterator: T)
fn extend<T: IntoIterator<Item = ExtensionContext>>(&mut self, iterator: T)Extends a collection with the contents of an iterator. Read more
impl FromIterator<ExtensionContext> for ExtensionContext
impl FromIterator<ExtensionContext> for ExtensionContextfn from_iter<T: IntoIterator<Item = ExtensionContext>>(
iterator: T
) -> ExtensionContext
fn from_iter<T: IntoIterator<Item = ExtensionContext>>(
iterator: T
) -> ExtensionContextCreates a value from an iterator. Read more
Auto Trait Implementations
impl Send for ExtensionContext
impl Send for ExtensionContextimpl Sync for ExtensionContext
impl Sync for ExtensionContext