axTLS
|
The client context. More...
Public Member Functions | |
SSLClient (int options, int num_sessions) | |
Start a new client context. More... | |
SSL | connect (Socket s, byte[] session_id) |
Establish a new SSL connection to an SSL server. More... | |
![]() | |
void | dispose () |
Remove a client/server context. More... | |
int | read (SSL ssl, SSLReadHolder rh) |
Read the SSL data stream. More... | |
int | write (SSL ssl, byte[] out_data) |
Write to the SSL data stream. More... | |
int | write (SSL ssl, byte[] out_data, int out_len) |
Write to the SSL data stream. More... | |
SSL | find (Socket s) |
Find an ssl object based on a Socket reference. More... | |
int | verifyCert (SSL ssl) |
Authenticate a received certificate. More... | |
int | renegotiate (SSL ssl) |
Force the client to perform its handshake again. More... | |
int | objLoad (int obj_type, String filename, String password) |
Load a file into memory that is in binary DER or ASCII PEM format. More... | |
int | objLoad (int obj_type, byte[] data, int len, String password) |
Transfer binary data into the object loader. More... | |
Additional Inherited Members | |
![]() | |
SSLCTX (int options, int num_sessions) | |
Establish a new client/server context. More... | |
![]() | |
int | m_ctx |
The client context.
All client connections are started within a client context.
|
inline |
Start a new client context.
|
inline |
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.
s | [in] A reference to a Socket object. |
session_id | [in] A 32 byte session id for session resumption. This can be null if no session resumption is not required. |
References axTLSj.SSLCTX.m_ctx.