|
| secure::cert_t | certificate (void) const |
| | Get peer (x509) certificate for current stream if present. More...
|
| |
|
void | close (void) |
| | Close a connection with a ssl server.
|
| |
|
void | flush (void) |
| |
| bool | is_certificate (void) const |
| | Check if a peer certificate is present. More...
|
| |
| bool | is_secure (void) const |
| | Check if ssl session active, otherwise pure tcp. More...
|
| |
| bool | is_signed (void) const |
| | Check if peer certificate is present and at least self-signed. More...
|
| |
| bool | is_verified (void) const |
| | Check if peer certificate is verified through an authority. More...
|
| |
| void | open (const char *host, const char *service, size_t size=536) |
| | Open a connection to a ssl server. More...
|
| |
|
void | release (void) |
| | Release all ssl resources.
|
| |
| | sstream (secure::client_t context) |
| | Construct a ssl client stream. More...
|
| |
| | sstream (const TCPServer *server, secure::server_t context, size_t size=536) |
| | Construct a ssl server stream. More...
|
| |
|
int | sync () |
| |
| | ~sstream () |
| | Destroy ssl stream. More...
|
| |
| void | close (void) |
| | Close an active stream connection. More...
|
| |
| void | open (Socket::address &address, unsigned segment=536) |
| | Open a stream connection to a tcp service. More...
|
| |
| void | open (const char *host, const char *service, unsigned segment=536) |
| | Open a stream connectoion to a host and service. More...
|
| |
| | operator bool () const |
| | See if stream connection is active. More...
|
| |
| bool | operator! () const |
| | See if stream is disconnected. More...
|
| |
| | tcpstream (const tcpstream ©) |
| | Copy constructor... More...
|
| |
| | tcpstream (const TCPServer *server, unsigned segsize=536, timeout_t timeout=0) |
| | Create a stream from an existing tcp listener. More...
|
| |
| | tcpstream (int family=2, timeout_t timeout=0) |
| | Create an unconnected tcp stream object that is idle until opened. More...
|
| |
| | tcpstream (Socket::address &address, unsigned segsize=536, timeout_t timeout=0) |
| | A convenience constructor that creates a connected tcp stream directly from an address. More...
|
| |
|
virtual | ~tcpstream () |
| | Destroy a tcp stream.
|
| |
|
bool | is_open (void) const |
| |
|
| operator bool () const |
| |
|
bool | operator! () const |
| |
| int | sync (void) |
| | Flush the stream input and output buffers, writes pending output. More...
|
| |
Secure socket using std::iostream.
Being based on tcpstream, it also inherits the character protocol. If no context is given or the handshake fails, then the stream defaults to insecure TCP connection behavior.
- Author
- David Sugar dyfet.nosp@m.@gnu.nosp@m.telep.nosp@m.hony.nosp@m..org
Definition at line 908 of file secure.h.