pub struct TlsControl {
pub strict_cipher_suites: bool,
pub strict_supported_groups: bool,
pub fallback_to_provider_groups: bool,
pub allow_legacy_compat_suites: bool,
}Expand description
This struct lets callers choose between broad compatibility and strict
- Compatible mode (default) skips unsupported profile entries with and unsupported groups.
§Example
use stygian_browser::tls::TlsControl;
let strict = TlsControl::strict();
assert!(strict.strict_cipher_suites);Fields§
§strict_cipher_suites: boolFail if any profile cipher suite is unsupported by rustls.
strict_supported_groups: boolFail if any profile supported-group entry is unsupported by rustls.
fallback_to_provider_groups: boolIf no profile groups can be mapped, use provider default groups.
allow_legacy_compat_suites: boolSkip legacy JA3-only suites that rustls cannot implement.
Implementations§
Source§impl TlsControl
impl TlsControl
pub const fn compatible() -> Self
Sourcepub const fn strict_all() -> Self
pub const fn strict_all() -> Self
Strict-all mode: reject unknown entries and avoid fallback groups.
Sourcepub fn for_profile(profile: &TlsProfile) -> Self
pub fn for_profile(profile: &TlsProfile) -> Self
Browser profiles use strict cipher-suite checking while allowing
Trait Implementations§
Source§impl Clone for TlsControl
impl Clone for TlsControl
Source§fn clone(&self) -> TlsControl
fn clone(&self) -> TlsControl
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TlsControl
impl Debug for TlsControl
Source§impl Default for TlsControl
impl Default for TlsControl
Source§impl PartialEq for TlsControl
impl PartialEq for TlsControl
impl Copy for TlsControl
impl Eq for TlsControl
impl StructuralPartialEq for TlsControl
Auto Trait Implementations§
impl Freeze for TlsControl
impl RefUnwindSafe for TlsControl
impl Send for TlsControl
impl Sync for TlsControl
impl Unpin for TlsControl
impl UnsafeUnpin for TlsControl
impl UnwindSafe for TlsControl
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.