|
VMime
|
#include <TLSSocket.hpp>


Static Public Member Functions | |
| static shared_ptr< TLSSocket > | wrap (shared_ptr< TLSSession > session, shared_ptr< socket > sok) |
Additional Inherited Members | |
Public Types inherited from socket | |
| enum | Status { STATUS_WOULDBLOCK = 0xf , STATUS_WANT_READ = 0x1 , STATUS_WANT_WRITE = 0x2 } |
Protected Member Functions inherited from socket | |
| socket () | |
Protected Member Functions inherited from object | |
| object () | |
| object (const object &) | |
| object & | operator= (const object &) |
| virtual | ~object () |
Add a TLS security layer to an existing socket.
|
pure virtual |
Return the peer's certificate (chain) as sent by the peer.
Starts a TLS handshake on this connection.
| exceptions::tls_exception | if a fatal error occurs during the negociation process, exceptions::operation_timed_out if a time-out occurs |
|
static |
Create a new socket object that adds a security layer around an existing socket.
| session | TLS session |
| sok | socket to wrap |