On Tue, Aug 10, 1999 at 05:35:37PM -0500, Blaine Kahle wrote:

> [...] I've spent hours going through the s_client and s_server code,
> and found quite the oddity (to me anyways): nowhere do I see a
> SSL_connect executed by the client. Is there a newer/better way to
> establish the SSL connection between two programs? Perhaps this is
> where my client differs from s_client?

SSL_read and SSL_write -- more exactly, the specific functions for the
various protocol versions -- know when they have to do a handshake
first.  (Because of renegotiation, this can happen even after an
initial SSL_connect completed; if SSL_read and SSL_write were not able
to handle the handshake, it would be much more difficult to write
programs that behave correctly in case of a renegotiation request by
the peer.)  So it is very unlikely that this has to do with the
authentication problem observed with your program.

Maybe you do SSL_CTX_use_PrivateKey_file and SSL_CTX_use_certificate_file
after the SSL_new?  Then the SSL structure will not contain the
certificate and key.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to