>> Maybe I am blind, but I have not been able to locate a list of
>> errors that are returned by SSL_get_error(). If anyone can point me
>> in the right direction I would appreciate it.
>
>What about the implementation of SSL_get_error? Or ssl.h.
Sorry about the elementary questions. I am obviously new to OpenSSL.
Is the following reasonable to do on a call to SSL_read()? Will it return the
propper error string?
if( ( nReturnVal = SSL_read( con, cReadBuffer, READ_BUFFER_SIZE ) ) < 1 ) {
unsigned long nErrorVal = SSL_get_error( con, nReturnVal );
char *cErrorString = ERR_error_string( nErrorVal, NULL );
printf( "%s", cErrorString );
}
Thanks Again.
Get HushMail. The world's first free, fully encrypted, web-based email system.
Speak freely with HushMail.... http://www.hushmail.com
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]