◆ SSLKeys() [1/3]
sptk::SSLKeys::SSLKeys |
( |
| ) |
|
|
default |
◆ SSLKeys() [2/3]
sptk::SSLKeys::SSLKeys |
( |
String |
privateKeyFileName, |
|
|
String |
certificateFileName, |
|
|
String |
password = "" , |
|
|
String |
caFileName = "" , |
|
|
int |
verifyMode = SSL_VERIFY_NONE , |
|
|
int |
verifyDepth = 0 |
|
) |
| |
Constructor
Private key and certificates must be encoded with PEM format. A single file containing private key and certificate can be used by supplying it for both, private key and certificate parameters. If private key is protected with password, then password can be supplied to auto-answer.
- Parameters
-
privateKeyFileName | Private key file name |
certificateFileName | Certificate file name |
password | Key file password |
caFileName | Optional CA (root certificate) file name |
verifyMode | Ether SSL_VERIFY_NONE, or SSL_VERIFY_PEER, for server can be ored with SSL_VERIFY_FAIL_IF_NO_PEER_CERT and/or SSL_VERIFY_CLIENT_ONCE |
verifyDepth | Connection verify depth |
◆ SSLKeys() [3/3]
sptk::SSLKeys::SSLKeys |
( |
const SSLKeys & |
other | ) |
|
Copy constructor
- Parameters
-
◆ ~SSLKeys()
sptk::SSLKeys::~SSLKeys |
( |
| ) |
|
|
defaultnoexcept |
◆ caFileName()
String sptk::SSLKeys::caFileName |
( |
| ) |
const |
- Returns
- certificate authority file name
◆ certificateFileName()
String sptk::SSLKeys::certificateFileName |
( |
| ) |
const |
- Returns
- certificate file name
◆ ident()
String sptk::SSLKeys::ident |
( |
| ) |
const |
Unique SSL keys identifier, for SSL keys index
- Returns
- SSL keys identifier
◆ operator=()
Copy assignment
- Parameters
-
◆ password()
String sptk::SSLKeys::password |
( |
| ) |
const |
- Returns
- private key password
◆ privateKeyFileName()
String sptk::SSLKeys::privateKeyFileName |
( |
| ) |
const |
- Returns
- private key file name
◆ verifyDepth()
int sptk::SSLKeys::verifyDepth |
( |
| ) |
const |
- Returns
- number of certificates to verify
◆ verifyMode()
int sptk::SSLKeys::verifyMode |
( |
| ) |
const |
The documentation for this class was generated from the following file: