Struct openssl::ssl::SslAcceptorBuilder  
                   
                       [−]
                   
               [src]
pub struct SslAcceptorBuilder(_);
A builder for SslAcceptors.
Methods
impl SslAcceptorBuilder[src]
fn mozilla_intermediate<I>(method: SslMethod,
                           private_key: &PKeyRef,
                           certificate: &X509Ref,
                           chain: I)
                           -> Result<SslAcceptorBuilder, ErrorStack> where I: IntoIterator, I::Item: AsRef<X509Ref>
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.
fn mozilla_modern<I>(method: SslMethod,
                     private_key: &PKeyRef,
                     certificate: &X509Ref,
                     chain: I)
                     -> Result<SslAcceptorBuilder, ErrorStack> where I: IntoIterator, I::Item: AsRef<X509Ref>
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.
fn mozilla_intermediate_raw(method: SslMethod)
                            -> Result<SslAcceptorBuilder, ErrorStack>
-> Result<SslAcceptorBuilder, ErrorStack>
Like mozilla_intermediate, but does not load the certificate chain and private key.
fn mozilla_modern_raw(method: SslMethod)
                      -> Result<SslAcceptorBuilder, ErrorStack>
-> Result<SslAcceptorBuilder, ErrorStack>
Like mozilla_modern, but does not load the certificate chain and private key.
fn builder(&self) -> &SslContextBuilder
Returns a shared reference to the inner SslContextBuilder.
fn builder_mut(&mut self) -> &mut SslContextBuilder
Returns a mutable reference to the inner SslContextBuilder.
fn build(self) -> SslAcceptor
Consumes the builder, returning a SslAcceptor.