Struct openssl::ssl::SslAcceptorBuilder
[−]
[src]
pub struct SslAcceptorBuilder(_);
A builder for SslAcceptor
s.
Methods
impl SslAcceptorBuilder
[src]
pub fn mozilla_intermediate<I>(
method: SslMethod,
private_key: &PKeyRef,
certificate: &X509Ref,
chain: I
) -> Result<SslAcceptorBuilder, ErrorStack> where
I: IntoIterator,
I::Item: AsRef<X509Ref>,
[src]
method: SslMethod,
private_key: &PKeyRef,
certificate: &X509Ref,
chain: I
) -> Result<SslAcceptorBuilder, ErrorStack> where
I: IntoIterator,
I::Item: AsRef<X509Ref>,
Creates a new builder configured to connect to non-legacy clients. This should generally be considered a reasonable default choice.
This corresponds to the intermediate configuration of Mozilla's server side TLS recommendations. See its documentation for more details on specifics.
pub fn mozilla_modern<I>(
method: SslMethod,
private_key: &PKeyRef,
certificate: &X509Ref,
chain: I
) -> Result<SslAcceptorBuilder, ErrorStack> where
I: IntoIterator,
I::Item: AsRef<X509Ref>,
[src]
method: SslMethod,
private_key: &PKeyRef,
certificate: &X509Ref,
chain: I
) -> Result<SslAcceptorBuilder, ErrorStack> where
I: IntoIterator,
I::Item: AsRef<X509Ref>,
Creates a new builder configured to connect to modern clients.
This corresponds to the modern configuration of Mozilla's server side TLS recommendations. See its documentation for more details on specifics.
pub fn mozilla_intermediate_raw(
method: SslMethod
) -> Result<SslAcceptorBuilder, ErrorStack>
[src]
method: SslMethod
) -> Result<SslAcceptorBuilder, ErrorStack>
Like mozilla_intermediate
, but does not load the certificate chain and private key.
pub fn mozilla_modern_raw(
method: SslMethod
) -> Result<SslAcceptorBuilder, ErrorStack>
[src]
method: SslMethod
) -> Result<SslAcceptorBuilder, ErrorStack>
Like mozilla_modern
, but does not load the certificate chain and private key.
pub fn builder(&self) -> &SslContextBuilder
[src]
Returns a shared reference to the inner SslContextBuilder
.
pub fn builder_mut(&mut self) -> &mut SslContextBuilder
[src]
Returns a mutable reference to the inner SslContextBuilder
.
pub fn build(self) -> SslAcceptor
[src]
Consumes the builder, returning a SslAcceptor
.