Transport Layer Security (TLS) client class. More...

#include <tls_client.h>

Public Member Functions

 TLSClient ()
 Constructs a TLS client. More...
 
int decrypt (const void *data, int size)
 Adds data to be decrypted. More...
 
void decrypted_data_consumed (int size)
 Marks decrypted data as consumed. More...
 
int encrypt (const void *data, int size)
 Adds data to be encrypted. More...
 
void encrypted_data_consumed (int size)
 Marks encrypted data as consumed. More...
 
const void * get_decrypted_data () const
 Return a pointer to decrypted data available for consumption. More...
 
int get_decrypted_data_available () const
 Returns how much decrypted data is available. More...
 
const void * get_encrypted_data () const
 Return a pointer to encrypted data available for consumption. More...
 
int get_encrypted_data_available () const
 Returns how much encrypted data is available. More...
 

Detailed Description

Transport Layer Security (TLS) client class.

Constructor & Destructor Documentation

clan::TLSClient::TLSClient ( )

Constructs a TLS client.

Member Function Documentation

int clan::TLSClient::decrypt ( const void *  data,
int  size 
)

Adds data to be decrypted.

void clan::TLSClient::decrypted_data_consumed ( int  size)

Marks decrypted data as consumed.

int clan::TLSClient::encrypt ( const void *  data,
int  size 
)

Adds data to be encrypted.

void clan::TLSClient::encrypted_data_consumed ( int  size)

Marks encrypted data as consumed.

const void* clan::TLSClient::get_decrypted_data ( ) const

Return a pointer to decrypted data available for consumption.

int clan::TLSClient::get_decrypted_data_available ( ) const

Returns how much decrypted data is available.

const void* clan::TLSClient::get_encrypted_data ( ) const

Return a pointer to encrypted data available for consumption.

int clan::TLSClient::get_encrypted_data_available ( ) const

Returns how much encrypted data is available.


The documentation for this class was generated from the following file: