axTLS
axTLS.SSLClient Class Reference

The client context. More...

Public Member Functions

 SSLClient (uint 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...
 
- Public Member Functions inherited from axTLS.SSLCTX
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...
 

Additional Inherited Members

- Protected Member Functions inherited from axTLS.SSLCTX
 SSLCTX (uint options, int num_sessions)
 Establish a new client/server context. More...
 
- Protected Attributes inherited from axTLS.SSLCTX
IntPtr m_ctx
 A reference to the real client/server context.
 

Detailed Description

The client context.

All client connections are started within a client context.

Constructor & Destructor Documentation

axTLS.SSLClient.SSLClient ( uint  options,
int  num_sessions 
)
inline

Start a new client context.

See also
SSLCTX for details.

Member Function Documentation

SSL axTLS.SSLClient.Connect ( Socket  s,
byte[]  session_id 
)
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.

Parameters
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.
Returns
An SSL object reference. Use SSL.handshakeStatus() to check if a handshake succeeded.

References axTLS.SSLCTX.m_ctx.

Copyright © 2007 Cameron Rich