Trait pingora_core::protocols::ssl::server::TlsAccept

source ·
pub trait TlsAccept {
    // Provided method
    fn certificate_callback<'life0, 'life1, 'async_trait>(
        &'life0 self,
        _ssl: &'life1 mut SslRef
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
       where Self: Sync + 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait { ... }
}
Expand description

The APIs to customize things like certificate during TLS server side handshake

Provided Methods§

source

fn certificate_callback<'life0, 'life1, 'async_trait>( &'life0 self, _ssl: &'life1 mut SslRef ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>>
where Self: Sync + 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

This function is called in the middle of a TLS handshake. Structs who implement this function should provide tls certificate and key to the SslRef via ext::ssl_use_certificate and ext::ssl_use_private_key.

Implementors§