pingora_openssl::ext

Function suspend_when_need_ssl_cert

Source
pub fn suspend_when_need_ssl_cert(ssl: &mut SslRef)
Expand description

Suspend the TLS handshake when a certificate is needed.

This function will cause tls handshake to pause and return the error: SSL_ERROR_WANT_X509_LOOKUP. The caller should set the certificate and then call unblock_ssl_cert() before continue the handshake on the tls connection.