OpenSSL error logging is broken
Upon an OpenSSL failure, the first error in the OpenSSL error queue is never logged if dst__openssl_toresult2()
or dst__openssl_toresult3()
is used due to toresult()
using ERR_get_error()
rather than ERR_peek_error()
.
Edited by Michał Kępień