pingora_openssl::ext

Function ssl_mut

Source
pub unsafe fn ssl_mut(ssl: &SslRef) -> &mut SslRef
Expand description

Get a mutable SslRef ouf of SslRef, which is a missing functionality even when holding &mut SslStream

ยงSafety

the caller needs to make sure that they hold a &mut SslStream (or other types of mutable ref to the Ssl)