pingora_openssl::ext

Function clear_error_stack

Source
pub fn clear_error_stack()
Expand description

Clear the error stack

SSL calls should check and clear the OpenSSL error stack. But some calls fail to do so. This causes the next unrelated SSL call to fail due to the leftover errors. This function allows caller to clear the error stack before performing SSL calls to avoid this issue.