Skip to main content

offers_raw_public_key

Function offers_raw_public_key 

Source
pub fn offers_raw_public_key(hello: &ClientHello<'_>) -> bool
Expand description

Whether a client’s ClientHello offers raw public keys (RFC 7250) in either direction: the server certificate type it will accept, or the client certificate type it will send.

A server that serves peers of both types on one port chooses between a raw-public-key configuration and an X.509 one by this, in the function it gives to asynch::accept_with (feature tokio) or a rustls Acceptor: rustls offers one certificate type per configuration, not a choice.