#include <TransportTLSCommon.H>
Inheritance diagram for TransportTLSCommon:
Public Member Functions | |
TransportTLSCommon () | |
Constructor. | |
~TransportTLSCommon () | |
Destructor. | |
void | read (string &xml_payload, const int &timeout=TIMEOUT) |
Read payload from the open connection. | |
void | write (const string &xml_payload, const int &timeout=TIMEOUT) |
Write payload to the open connection. | |
void | disconnect () |
Close the connection. | |
string | get_openssl_msg () |
Return the OpenSSL error message. | |
Protected Member Functions | |
void | seed_prng () |
Seed OpenSSL pseudo random number generator. | |
void | setup_context (const string &cert_file, const string &root_ca_file, const string &pem_passphrase="") |
Setup Context for Certificate Validation. | |
void | set_non_blocking () |
Set the underlying I/O descriptor as non-blocking. | |
Static Protected Member Functions | |
static int | pem_passwd_cb (char *buf, int size, int rwflag, void *userdata) |
Callback method used by OpenSSL to collect passphrases. | |
Protected Attributes | |
BIO * | _conn |
BIO Socket. | |
SSL_CTX * | _ssl_ctx |
SSL Context. | |
SSL * | _ssl |
SSL object. | |
Static Protected Attributes | |
static string | _pem_passphrase |
pem passphrase | |
static const int | TIMEOUT |
Default read/write timeout in seconds. |
|
Return the OpenSSL error message.
|
|
Callback method used by OpenSSL to collect passphrases.
|
|
Read payload from the open connection.
|
|
Setup Context for Certificate Validation.
|
|
Write payload to the open connection.
|