Ben Laurie
Fri, 31 Jan 2003 11:08:37 -0800
Bodo Moeller via RT wrote:
How can it cause confusion (I think I missed something here)? You should only look at the error stack if you got an error, surely?On Tue, Nov 26, 2002 at 10:44:15PM +0200, Arne Ansper wrote:I just checked. Seems that SSL_CTX_use_certificate_chain_file has a same problem. Other uses of ERR_peek_error seem to be immune to the old entries in error stack.One theory is that applications should not call arbitrary OpenSSL functions while there is stuff in the error queue. A second theory is that OpenSSL should always clear the error queue by calling ERR_clear_error() if stuff left in the error queue might cause confusion later.