TransportTLS class.
More...
#include <TransportTLS.H>
|
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. More...
|
|
void | set_non_blocking () |
| Set the underlying I/O descriptor as non-blocking.
|
|
static int | pem_passwd_cb (char *buf, int size, int rwflag, void *userdata) |
| Callback method used by OpenSSL to collect passphrases. More...
|
|
BIO * | _conn |
| BIO Socket.
|
|
SSL_CTX * | _ssl_ctx |
| SSL Context.
|
|
SSL * | _ssl |
| SSL object.
|
|
bool | _cert_common_name_check_enabled |
| Flag for peer's certificate CN check.
|
|
static string | _pem_passphrase |
| pem passphrase
|
|
static const int | TIMEOUT |
| Default read/write timeout in seconds.
|
|
void TransportTLS::connect |
( |
const string & |
client_cert_file, |
|
|
const string & |
root_ca_file, |
|
|
const string & |
pem_passphrase = "" |
|
) |
| |
Open the Connection.
- Parameters
-
client_cert_file | Client certificate file |
root_ca_file | Root certificate file |
pem_passphrase | Optional passphrase for an encrypted private key |
int TransportTLS::get_port |
( |
| ) |
const |
Return the server port number.
- Returns
- server port number
string TransportTLS::get_server |
( |
| ) |
const |
Return the server address.
- Returns
- server name/address
void TransportTLS::set_port |
( |
const int |
port | ) |
|
Set connection port.
- Parameters
-
void TransportTLS::set_server |
( |
const string & |
server | ) |
|
Set the server name/address.
- Parameters
-
The documentation for this class was generated from the following file: