@brief Establish a new SSL connection to an SSL server. It is up to the application to establish the initial socket connection. This is a blocking call - it will finish when the handshake is complete (or has failed). Call dispose() when the connection is to be removed. @param s [in] A reference t
(Socket s, byte[] session_id)
| 71 | * if a handshake succeeded. |
| 72 | */ |
| 73 | public SSL connect(Socket s, byte[] session_id) |
| 74 | { |
| 75 | int client_fd = axtlsj.getFd(s); |
| 76 | byte sess_id_size = (byte)(session_id != null ? |
| 77 | session_id.length : 0); |
| 78 | return new SSL(axtlsj.ssl_client_new(m_ctx, client_fd, session_id, |
| 79 | sess_id_size)); |
| 80 | } |
| 81 | } |