Jeff Roberts schrieb:
>
> Can anybody tell me how to get and interpret errors in OpenSSL ? For Example I call
>SSL_Connect() and get a return code of -1. How do I get the error code and error
>string associated with the error, I can't find any documentation on this and all of
>the examples don't even care if it fails ?
>
> Thank YOU !
Read the file error.doc in the doc subdir of the distribution.
This is one of the parts that *is* documented ;-)
In short:
SSL_load_error_strings();
if <function failed>
while ((ERR_no = ERR_get_error()))
printf("%s\n", ERR_error_string(ERR_no, NULL));
--
Holger Reif Tel.: +49 361 74707-0
SmartRing GmbH Fax.: +49 361 7470720
Europaplatz 5 [EMAIL PROTECTED]
D-99091 Erfurt WWW.SmartRing.de
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]