Jeff Roberts <[EMAIL PROTECTED]>:
> 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 ?
Basically, the programs in the /apps directory serve as documentation.
I don't know which examples you are talking of, those example programs
do check for errors; e.g.:
$ openssl s_client -host www.patentminer.com -port 443 -tls1
CONNECTED(00000008)
1552:error:1408F10B:SSL routines:SSL3_GET_RECORD:wrong version
number:s3_pkt.c:276:
The ERR_print_errors() function printed that error message, and all
needed initialization for that you should be able to find in
s_client.c.
______________________________________________________________________
OpenSSL Project http://www.openssl.org
Development Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]