pingora_boringssl::ext

Function clear_error_stack

Source
pub fn clear_error_stack()
Expand description

Clear the error stack

SSL calls should check and clear the BoringSSL 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 the caller to clear the error stack before performing SSL calls to avoid this issue.