Skip to main content

TlsServerCtxConfig

Trait TlsServerCtxConfig 

Source
pub trait TlsServerCtxConfig {
    // Required methods
    fn dns_host_name(&self, _: &str) -> bool;
    fn alpn<'r>(&self, _: Alpn<'r>) -> bool;
    fn server_cert_chain(&self) -> &[u8];
    fn server_cert(&self, _id: u8) -> &[u8];
    fn server_private_key(&self) -> &[u8];
}
Expand description

Implement to provide configuration for the Tls Server Context

Required Methods§

Source

fn dns_host_name(&self, _: &str) -> bool

Implement to provide whether indicative host name (SNI) matches intended server name.

Source

fn alpn<'r>(&self, _: Alpn<'r>) -> bool

Implement to provide whether given alpn matches intended alpn

Source

fn server_cert_chain(&self) -> &[u8]

Implenent to provide Server certificate chain listing certificate internal ids

Source

fn server_cert(&self, _id: u8) -> &[u8]

Implement to provide Server certificate by id key

Source

fn server_private_key(&self) -> &[u8]

Implement to provide Server private key

Implementors§