pub enum CraftExtension {
Show 14 variants
Grease1,
Grease2,
RenegotiationInfo,
SupportedCurves(&'static [GreaseOrCurve]),
SupportedVersions(&'static [GreaseOrVersion]),
SignedCertificateTimestamp,
KeyShare(&'static [GreaseOrCurve]),
FakeApplicationSettings,
FakeCompressCert,
CompressCert(&'static [CertificateCompressionAlgorithm]),
Padding,
Protocols(&'static [&'static [u8]]),
FakeDelegatedCredentials(&'static [SignatureScheme]),
FakeRecordSizeLimit(u16),
}
Expand description
Craft client extension provides customization to rustls client extensions, or offers some unavailable extensions in rustls.
Variants§
Grease1
The first grease extension in the list
Grease2
The second grease extension in the list
RenegotiationInfo
RenegotiationInfo extension that hard coded with RenegotiationNever
SupportedCurves(&'static [GreaseOrCurve])
SupportedCurves that supports grease or NamedCurve
SupportedVersions(&'static [GreaseOrVersion])
SupportedVersions that supports grease or tls versions
SignedCertificateTimestamp
Hardcoded SignedCertificateTimestamp
KeyShare that supports grease or NamedCurve
FakeApplicationSettings
Hardcoded fake BoringSSL ApplicationSettings.
FakeCompressCert
Hardcoded fake CompressCert extension that provides no compression algorithm
CompressCert(&'static [CertificateCompressionAlgorithm])
CompressCert extension
Padding
Client Hello Padding extension that mimics the BoringSSL padding style
Protocols(&'static [&'static [u8]])
ALPN extension
FakeDelegatedCredentials(&'static [SignatureScheme])
Fake DelegatedCredentials extension
FakeRecordSizeLimit(u16)
Fake RecordSizeLimit extension
Trait Implementations§
Source§impl Clone for CraftExtension
impl Clone for CraftExtension
Source§fn clone(&self) -> CraftExtension
fn clone(&self) -> CraftExtension
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 moreAuto Trait Implementations§
impl Freeze for CraftExtension
impl RefUnwindSafe for CraftExtension
impl Send for CraftExtension
impl Sync for CraftExtension
impl Unpin for CraftExtension
impl UnwindSafe for CraftExtension
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