On 1/3/2011 4:22 AM, Uri Simchoni wrote:
I’m using OpenSSL 0.9.8i, and have noticed the following scenario:
-Some OpenSSL crypto function returns with an error, leaving a
description of the error on the error queue
-The application neglects to call ERR_clear_error()
-SSL_read() is then
I'm using OpenSSL 0.9.8i, and have noticed the following scenario:
- Some OpenSSL crypto function returns with an error, leaving a
description of the error on the error queue
- The application neglects to call ERR_clear_error()
- SSL_read() is then called on a
If your program ignores the error queue, your program is doing the equivalent
of not checking errno after every system call. The program is required to deal
with the error queue, because it is OpenSSL's only mechanism for informing the
application code of the wide variety of potential
failing non-blocking SSL IO
If your program ignores the error queue, your program is doing the equivalent
of not checking errno after every system call. The program is required to deal
with the error queue, because it is OpenSSL's only mechanism for informing the
application code of the wide