Re: Non empty error stack failing non-blocking SSL IO

2011-01-05 Thread David Schwartz
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

Non empty error stack failing non-blocking SSL IO

2011-01-03 Thread Uri Simchoni
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

Re: Non empty error stack failing non-blocking SSL IO

2011-01-03 Thread aerowolf
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

RE: Non empty error stack failing non-blocking SSL IO

2011-01-03 Thread Uri Simchoni
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