NAME
SSL_connect — initiate the TLS/SSL handshake with a TLS/SSL serverDESCRIPTION
SSL_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.NOTES
The behaviour of SSL_connect() depends on the underlying BIO.RETURN VALUES
The following return values can occur:- 0
- 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.
- 1
- The TLS/SSL handshake was successfully completed, and a TLS/SSL connection has been established.
- <0
- 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.