Skip to main content

EchServerKeysProvider

Trait EchServerKeysProvider 

pub trait EchServerKeysProvider:
    Send
    + Sync
    + 'static {
    // Required methods
    fn snapshot(&self) -> Arc<EchServerKeys> ⓘ;
    fn bind_context(
        &self,
        context: SslContext,
    ) -> Result<Arc<SslContext>, Box<dyn Error + Send + Sync>>;
}
Available on crate feature boring only.
Expand description

Prepared ECH configuration with optional live context updates.

Contexts subscribe once at construction. Updates must push complete validated generations; no provider work or key parsing runs on the handshake path. BoringSSL takes its stable snapshot at the first ClientHello, not TCP accept.

Required Methods§

fn snapshot(&self) -> Arc<EchServerKeys> ⓘ

fn bind_context( &self, context: SslContext, ) -> Result<Arc<SslContext>, Box<dyn Error + Send + Sync>>

Install the current generation and register a context for future updates. Registration and replacement must be serialized to avoid stale installs.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§