NAMESSL_connect — initiate the TLS/SSL handshake with a TLS/SSL server
DESCRIPTIONSSL_connect() initiates the TLS/SSL handshake with a server. The communication channel must already have been set and assigned to the ssl by setting an underlying BIO.
NOTESThe behaviour of SSL_connect() depends on the underlying BIO.
RETURN VALUESThe following return values can occur:
- The TLS/SSL handshake was not successful but was shut down controlled and by the specifications of the TLS/SSL protocol. Call SSL_get_error(3) with the return value ret to find out the reason.
- The TLS/SSL handshake was successfully completed, and a TLS/SSL connection has been established.
- The TLS/SSL handshake was not successful, because either a fatal error occurred at the protocol level or a connection failure occurred. The shutdown was not clean. It can also occur if action is needed to continue the operation for non-blocking BIOs. Call SSL_get_error(3) with the return value ret to find out the reason.