|
void | Dispose () |
| Remove a client/server context. More...
|
|
int | Read (SSL ssl, out byte[] in_data) |
| 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...
|
|
A base object for SSLServer/SSLClient.
axTLS.SSLCTX.SSLCTX |
( |
uint |
options, |
|
|
int |
num_sessions |
|
) |
| |
|
inlineprotected |
Establish a new client/server context.
This function is called before any client/server SSL connections are made. If multiple threads are used, then each thread will have its own SSLCTX context. Any number of connections may be made with a single context.
Each new connection will use the this context's private key and certificate chain. If a different certificate chain is required, then a different context needs to be be used.
- Parameters
-
options | [in] Any particular options. At present the options supported are:
- SSL_SERVER_VERIFY_LATER (client only): Don't stop a handshake if the server authentication fails. The certificate can be authenticated later with a call to VerifyCert().
- SSL_CLIENT_AUTHENTICATION (server only): Enforce client authentication i.e. each handshake will include a "certificate
request" message from the server.
- SSL_DISPLAY_BYTES (full mode build only): Display the byte sequences during the handshake.
- SSL_DISPLAY_STATES (full mode build only): Display the state changes during the handshake.
- SSL_DISPLAY_CERTS (full mode build only): Display the certificates that are passed during a handshake.
- SSL_DISPLAY_RSA (full mode build only): Display the RSA key details that are passed during a handshake.
|
num_sessions | [in] The number of sessions to be used for session caching. If this value is 0, then there is no session caching. |
- Returns
- A client/server context.