Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

SSL_connect, and SSL_accept

76 views
Skip to first unread message

Sam Jantz

unread,
Sep 7, 2010, 5:28:39 PM9/7/10
to
Where are SSL_accept, and SSL_connect defined?  Specifically for TLSv1, and SSLv3 connections.  I found the definition in ssl_lib.c but then that calls s->method->ssl_accept(s).  From here the only mention I could find of an ssl3_accept is in s3_srvr.c which to my understanding is not part of the library, and is part of an example program.  Any suggestions are appreciated.  Thank you,


     -Sam

--
Sam Jantz
Software Engineer

Dave Thompson

unread,
Sep 7, 2010, 7:53:52 PM9/7/10
to
> From: owner-ope...@openssl.org On Behalf Of Sam Jantz
> Sent: Tuesday, 07 September, 2010 17:29


> Where are SSL_accept, and SSL_connect defined? Specifically
> for TLSv1, and SSLv3 connections. I found the definition
> in ssl_lib.c but then that calls s->method->ssl_accept(s).

Right; the common API SSL_{accept,connect,read,etc} dispatches
to protocol-specific routines determined (only?) by the 'method'
you used to create your SSL*, and those often dispatch further.
Mostly these are ssl2_* for SSL2, ssl3_* for SSL3, ssl23_* for
composite, tls1_* for TLS1, dtls1_* for DTLS1, but I think
I've seen some exceptions here and there.

> From here the only mention I could find of an ssl3_accept
> is in s3_srvr.c which to my understanding is not part of
> the library, and is part of an example program.

Everything in SOURCE/ssl is part of libssl except ssltest.
The pure examples are in SOURCE/demos, and the commandline
utilities which can also be examples are in SOURCE/apps.
(And nearly all of SOURCE/crypto/* -- 2 levels -- is libcrypto.)


______________________________________________________________________
OpenSSL Project http://www.openssl.org
User Support Mailing List openss...@openssl.org
Automated List Manager majo...@openssl.org

0 new messages