SSL_connect is returning 0 - the error code is 2, "system lib"
> I believe that for SSL_connect() a return value of 0 also indicates an
> error. In such a case, you should delve deeper and figure out the
exact text
> message of the error (as lutz suggested). You may see what you have
been
> looking for.
>
> Arun.
>
> "The online world is a cool place to visit, but you really don't want
to
> live there."
>
>
> ****************************************************************
> This message is for the named person(s) use only. It may contain
> confidential, proprietary or legally privileged information. No
> confidentiality or privilege is waived or lost by any mistransmission.
> If you receive this message in error, please immediately delete it and
> all copies of it from your system, destroy any hard copies of it and
> notify the sender. You must not, directly or indirectly, use,
disclose,
> distribute, print, or copy any part of this message if you are not the
> intended recipient. SPEEDERA NETWORKS, INC. reserves the right to
> monitor all e-mail communications through its network.
-----Original Message-----
From: Paul Faccenda <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Tuesday, July 18, 2000 12:18 PM
Subject: (no subject)
>Yes, I did do SSL_set_fd() and SSL_connect(). Here is the revised
>sequence.
>{
> SSL * ssl = NULL;
> int ssl_sock;
> char * cipher;
>
> ssl_sock = socket( AF_INET, SOCK_STREAM, IPPROTO_TCP );
> connect( ssl_sock, (struct sockaddr *)&serv_addr, sizeof(serv_addr));
> ssl = (SSL*) SSL_new( ssl_ctx ); file://ssl_ctx is global
> status = SSL_set_fd( ssl, ssl_sock );
>
> SSL_set_connect_state( ssl );
> status = SSL_connect( ssl ); // returns 0
> cipher = SSL_get_cipher(ssl);
>}
>
>The connect works, but the cipher returned after the handshake is
>"(NONE)", and I cant write on the secure socket. When I put the same
>code into a standalone C program, it works fine.
>
>
>
>______________________________________________________________________
>OpenSSL Project http://www.openssl.org
>User Support Mailing List [EMAIL PROTECTED]
>Automated List Manager [EMAIL PROTECTED]
>
The AIMS Group
______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List [EMAIL PROTECTED]
Automated List Manager [EMAIL PROTECTED]