No, that is incorrect coding. See SSL_connect() docs for further information regarding return values.
-----Original Message----- From: Daryl Odnert [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 1:35 PM To: '[EMAIL PROTECTED]' Subject: RE: re[2]: HELP, SSL_connect fails ! Jeff, Change your code so it looks like this: int rval; if ((rval = SSL_connect(con)) != 1) { int err = SSL_get_error(con, rval); /* handle the error here */ } Daryl Odnert [EMAIL PROTECTED] -----Original Message----- From: Jeff Roberts [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 10:24 AM To: [EMAIL PROTECTED] Subject: re[2]: HELP, SSL_connect fails ! I am calling the ERR_get_error() to get the error, but it returns a 0 ? My code looks as follows: if(!SSL_connect(con)) { ERR_no = ERR_get_error(); if(ERR_no) { //never gets here !!!!! err=ERR_no; dojournal(ERR_error_string(ERR_no,NULL)); while(ERR_no = ERR_get_error()) dojournal(ERR_error_string(ERR_no,NULL)); } } ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED] ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED] ***************************************************************** DISCLAIMER: The information contained in this e-mail may be confidential and is intended solely for the use of the named addressee. Access, copying or re-use of the e-mail or any information contained therein by any other person is not authorized. If you are not the intended recipient please notify us immediately by returning the e-mail to the originator. ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]