ESP8266
Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
SSLContext Class Reference

Public Member Functions

 SSLContext ()
 
 ~SSLContext ()
 
void ref ()
 
void unref ()
 
void connect (ClientContext *ctx)
 
int read (uint8_t *dst, size_t size)
 
int read ()
 
int peek ()
 
size_t peekBytes (char *dst, size_t size)
 
int available ()
 
 operator SSL * ()
 

Protected Member Functions

int _readAll ()
 

Protected Attributes

SSL * _ssl = nullptr
 
int _refcnt = 0
 
const uint8_t * _read_ptr = nullptr
 
size_t _available = 0
 

Static Protected Attributes

static SSL_CTX * _ssl_ctx = nullptr
 
static int _ssl_ctx_refcnt = 0
 

Constructor & Destructor Documentation

SSLContext::SSLContext ( )
SSLContext::~SSLContext ( )

Member Function Documentation

int SSLContext::_readAll ( )
protected
int SSLContext::available ( void  )
void SSLContext::connect ( ClientContext ctx)
SSLContext::operator SSL * ( )
int SSLContext::peek ( void  )
size_t SSLContext::peekBytes ( char *  dst,
size_t  size 
)
int SSLContext::read ( uint8_t *  dst,
size_t  size 
)
int SSLContext::read ( void  )
void SSLContext::ref ( )
void SSLContext::unref ( )

Member Data Documentation

size_t SSLContext::_available = 0
protected
const uint8_t* SSLContext::_read_ptr = nullptr
protected
int SSLContext::_refcnt = 0
protected
SSL* SSLContext::_ssl = nullptr
protected
SSL_CTX * SSLContext::_ssl_ctx = nullptr
staticprotected
int SSLContext::_ssl_ctx_refcnt = 0
staticprotected