[#SSL_connect]
= SSL&lowbar;connect
:mrdocs:

Initiate the TLS&sol;SSL handshake as a client on an already configured connection&period;

== Synopsis

Declared in `&lt;openssl&sol;ssl&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
SSL&lowbar;connect(xref:SSL.adoc[SSL]* ssl);
----

== Return Value

1 if the handshake completed, 0 if it failed cleanly, or &lt;0 on want&hyphen;IO &sol; fatal error (see SSL&lowbar;get&lowbar;error)&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ssl*
| Client SSL object with an underlying BIO (or equivalent) already set&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
