#include <TlsOptions.h>
Public Types | |
| enum | tls_option { CACERTFILE = 0, CACERTDIR, CERTFILE, KEYFILE, REQUIRE_CERT, PROTOCOL_MIN, CIPHER_SUITE, RANDOM_FILE, CRLCHECK, DHFILE } |
| Available TLS Options. More... | |
| enum | verifyMode { NEVER = 0, HARD, DEMAND, ALLOW, TRY } |
| Possible Values for the REQUIRE_CERT option. More... | |
| enum | crlMode { CRL_NONE = 0, CRL_PEER, CRL_ALL } |
| Possible Values for the CRLCHECK option. More... | |
Public Member Functions | |
| TlsOptions () | |
| Default constructor. | |
| void | setOption (tls_option opt, const std::string &value) const |
| Set string valued options. | |
| void | setOption (tls_option opt, int value) const |
| Set integer valued options. | |
| void | setOption (tls_option opt, void *value) const |
| Generic setOption variant. | |
| int | getIntOption (tls_option opt) const |
| Read integer valued options. | |
| std::string | getStringOption (tls_option opt) const |
| Read string valued options. | |
| void | getOption (tls_option opt, void *value) const |
| Read options value. | |
Friends | |
| class | LDAPAsynConnection |
To access connection specific settings instantiate a TlsOption object through the getTlsOptions() method from the corresponding LDAPConnection/LDAPAsynConnection object.
| enum TlsOptions::crlMode |
| TlsOptions::TlsOptions | ( | ) |
Default constructor.
Gives access to the global TlsSettings
| void TlsOptions::setOption | ( | tls_option | opt, | |
| const std::string & | value | |||
| ) | const |
Set string valued options.
| opt | The following string valued options are available: | |
| value | The value to apply to that option,
|
References CACERTDIR, CACERTFILE, CERTFILE, KEYFILE, and STRING.
Referenced by setOption().
| void TlsOptions::setOption | ( | tls_option | opt, | |
| int | value | |||
| ) | const |
Set integer valued options.
| opt | The following string valued options are available: | |
| value | The value to apply to that option,
|
References INT, and setOption().
| void TlsOptions::setOption | ( | tls_option | opt, | |
| void * | value | |||
| ) | const |
Generic setOption variant.
Generally you should prefer to use one of the other variants
| int TlsOptions::getIntOption | ( | tls_option | opt | ) | const |
Read integer valued options.
| LDAPException | in case of error (invalid on non-integer valued option is requested) |
References INT.
| std::string TlsOptions::getStringOption | ( | tls_option | opt | ) | const |
Read string valued options.
| LDAPException | in case of error (invalid on non-string valued option is requested) |
References STRING.
| void TlsOptions::getOption | ( | tls_option | opt, | |
| void * | value | |||
| ) | const |
Read options value.
Usually you should prefer to use either getIntOption() or getStringOption()
| value | points to a buffer containing the option value |
| LDAPException | in case of error (invalid on non-string valued option is requested) |
friend class LDAPAsynConnection [friend] |
1.5.6