Trait BoringServerConfigExt
pub trait BoringServerConfigExt: Sized {
// Required methods
fn with_cert_issuer(self, data: ServerCertIssuerData) -> Self;
fn set_cert_issuer(&mut self, data: ServerCertIssuerData) -> &mut Self;
fn with_cipher_suites(self, suites: Vec<CipherSuite>) -> Self;
fn set_cipher_suites(&mut self, suites: Vec<CipherSuite>) -> &mut Self;
fn with_supported_groups(self, groups: Vec<SupportedGroup>) -> Self;
fn set_supported_groups(&mut self, groups: Vec<SupportedGroup>) -> &mut Self;
fn with_signature_schemes(self, schemes: Vec<SignatureScheme>) -> Self;
fn set_signature_schemes(
&mut self,
schemes: Vec<SignatureScheme>,
) -> &mut Self;
fn with_cert_compression(
self,
algorithms: Vec<CertificateCompressionAlgorithm>,
) -> Self;
fn set_cert_compression(
&mut self,
algorithms: Vec<CertificateCompressionAlgorithm>,
) -> &mut Self;
}boring only.Expand description
Boring specific tls setters.
Required Methods§
fn with_cert_issuer(self, data: ServerCertIssuerData) -> Self
fn with_cert_issuer(self, data: ServerCertIssuerData) -> Self
Issue server certs on the fly (from a CA or a custom [DynamicCertIssuer]),
with optional in-memory caching.
fn set_cert_issuer(&mut self, data: ServerCertIssuerData) -> &mut Self
fn set_cert_issuer(&mut self, data: ServerCertIssuerData) -> &mut Self
Issue server certs on the fly (from a CA or a custom [DynamicCertIssuer]),
with optional in-memory caching.
fn with_cipher_suites(self, suites: Vec<CipherSuite>) -> Self
fn with_cipher_suites(self, suites: Vec<CipherSuite>) -> Self
Cipher suites for TLS 1.2 and below, in preference order.
BoringSSL picks TLS 1.3 cipher suites itself, so those entries are ignored.
fn set_cipher_suites(&mut self, suites: Vec<CipherSuite>) -> &mut Self
fn set_cipher_suites(&mut self, suites: Vec<CipherSuite>) -> &mut Self
Cipher suites for TLS 1.2 and below, in preference order.
BoringSSL picks TLS 1.3 cipher suites itself, so those entries are ignored.
fn with_supported_groups(self, groups: Vec<SupportedGroup>) -> Self
fn with_supported_groups(self, groups: Vec<SupportedGroup>) -> Self
Key exchange groups, in preference order.
fn set_supported_groups(&mut self, groups: Vec<SupportedGroup>) -> &mut Self
fn set_supported_groups(&mut self, groups: Vec<SupportedGroup>) -> &mut Self
Key exchange groups, in preference order.
fn with_signature_schemes(self, schemes: Vec<SignatureScheme>) -> Self
fn with_signature_schemes(self, schemes: Vec<SignatureScheme>) -> Self
Signature schemes to sign the handshake with, in preference order.
fn set_signature_schemes(&mut self, schemes: Vec<SignatureScheme>) -> &mut Self
fn set_signature_schemes(&mut self, schemes: Vec<SignatureScheme>) -> &mut Self
Signature schemes to sign the handshake with, in preference order.
fn with_cert_compression(
self,
algorithms: Vec<CertificateCompressionAlgorithm>,
) -> Self
fn with_cert_compression( self, algorithms: Vec<CertificateCompressionAlgorithm>, ) -> Self
Certificate compression algorithms the server can compress with.
The first one the client offers is used.
fn set_cert_compression(
&mut self,
algorithms: Vec<CertificateCompressionAlgorithm>,
) -> &mut Self
fn set_cert_compression( &mut self, algorithms: Vec<CertificateCompressionAlgorithm>, ) -> &mut Self
Certificate compression algorithms the server can compress with.
The first one the client offers is used.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".