Skip to main content

RustlsServerConfigExt

Trait RustlsServerConfigExt 

Source
pub trait RustlsServerConfigExt {
    // Required methods
    fn server_config_rustls(&self) -> ServerConfig;
    fn server_config_rustls_with_provider(
        &self,
        provider: Arc<CryptoProvider>,
    ) -> ServerConfig;
}
Expand description

Extension trait that builds a rustls::ServerConfig from uselesskey fixtures.

Required Methods§

Source

fn server_config_rustls(&self) -> ServerConfig

Build a ServerConfig using the process-default CryptoProvider.

Source

fn server_config_rustls_with_provider( &self, provider: Arc<CryptoProvider>, ) -> ServerConfig

Build a ServerConfig with an explicit CryptoProvider.

Implementations on Foreign Types§

Source§

impl RustlsServerConfigExt for X509Cert

Available on crate features x509 and server-config only.
Source§

impl RustlsServerConfigExt for X509Chain

Available on crate features x509 and server-config only.

Implementors§