SNode.C
|
#include <ConfigTls.h>
Public Member Functions | |
ConfigTls & | setInitTimeout (const utils::Timeval &newInitTimeout) |
utils::Timeval | getInitTimeout () const |
ConfigTls & | setShutdownTimeout (const utils::Timeval &newShutdownTimeout) |
utils::Timeval | getShutdownTimeout () const |
ConfigTls & | setCert (const std::string &cert) |
std::string | getCert () const |
ConfigTls & | setCertKey (const std::string &certKey) |
std::string | getCertKey () const |
ConfigTls & | setCertKeyPassword (const std::string &certKeyPassword) |
std::string | getCertKeyPassword () const |
ConfigTls & | setCaCert (const std::string &caCert) |
std::string | getCaCert () const |
ConfigTls & | setCaCertDir (const std::string &caCertDir) |
std::string | getCaCertDir () const |
ConfigTls & | setCaCertUseDefaultDir (bool set=true) |
bool | getCaCertUseDefaultDir () const |
ConfigTls & | setCaCertAcceptUnknown (bool set=true) |
bool | getCaCertAcceptUnknown () const |
ConfigTls & | setCipherList (const std::string &cipherList) |
std::string | getCipherList () const |
ConfigTls & | setSslOptions (ssl_option_t sslOptions) |
ssl_option_t | getSslOptions () const |
ConfigTls & | setNoCloseNotifyIsEOF (bool noCloseNotifyIsEOF=true) |
bool | getNoCloseNotifyIsEOF () const |
Protected Member Functions | |
ConfigTls (ConfigInstance *instance) | |
Protected Member Functions inherited from net::config::ConfigSection | |
ConfigSection (ConfigInstance *instance, const std::string &name, const std::string &description) | |
ConfigSection (const ConfigSection &)=delete | |
ConfigSection (ConfigSection &&)=delete | |
ConfigSection & | operator= (const ConfigSection &)=delete |
ConfigSection & | operator= (ConfigSection &&)=delete |
CLI::Option * | addOption (const std::string &name, const std::string &description) |
CLI::Option * | addOption (const std::string &name, const std::string &description, const std::string &typeName) |
CLI::Option * | addOption (const std::string &name, const std::string &description, const std::string &typeName, const CLI::Validator &additionalValidator) |
template<typename ValueTypeT > | |
CLI::Option * | addOption (const std::string &name, const std::string &description, const std::string &typeName, ValueTypeT defaultValue) |
template<typename ValueTypeT > | |
CLI::Option * | addOption (const std::string &name, const std::string &description, const std::string &typeName, ValueTypeT defaultValue, const CLI::Validator &additionalValidator) |
CLI::Option * | addFlag (const std::string &name, const std::string &description, const std::string &typeName) |
CLI::Option * | addFlag (const std::string &name, const std::string &description, const std::string &typeName, const CLI::Validator &additionalValidator) |
template<typename ValueTypeT > | |
CLI::Option * | addFlag (const std::string &name, const std::string &description, const std::string &typeName, ValueTypeT defaultValue) |
template<typename ValueTypeT > | |
CLI::Option * | addFlag (const std::string &name, const std::string &description, const std::string &typeName, ValueTypeT defaultValue, const CLI::Validator &additionalValidator) |
CLI::Option * | addFlagFunction (const std::string &name, const std::function< void()> &callback, const std::string &description, const std::string &typeName, const std::string &defaultValue) |
CLI::Option * | addFlagFunction (const std::string &name, const std::function< void()> &callback, const std::string &description, const std::string &typeName, const std::string &defaultValue, const CLI::Validator &validator) |
void | required (CLI::Option *opt, bool req=true) |
bool | required () const |
template<typename ValueType > | |
CLI::Option * | addOption (const std::string &name, const std::string &description, const std::string &typeName, ValueType defaultValue) |
template<typename ValueType > | |
CLI::Option * | addOption (const std::string &name, const std::string &description, const std::string &typeName, ValueType defaultValue, const CLI::Validator &additionalValidator) |
template<typename ValueType > | |
CLI::Option * | addFlag (const std::string &name, const std::string &description, const std::string &typeName, ValueType defaultValue) |
template<typename ValueType > | |
CLI::Option * | addFlag (const std::string &name, const std::string &description, const std::string &typeName, ValueType defaultValue, const CLI::Validator &additionalValidator) |
Private Attributes | |
CLI::Option * | certOpt = nullptr |
CLI::Option * | certKeyOpt = nullptr |
CLI::Option * | certKeyPasswordOpt = nullptr |
CLI::Option * | caCertOpt = nullptr |
CLI::Option * | caCertDirOpt = nullptr |
CLI::Option * | caCertUseDefaultDirOpt = nullptr |
CLI::Option * | caCertAcceptUnknownOpt = nullptr |
CLI::Option * | cipherListOpt = nullptr |
CLI::Option * | sslOptionsOpt = nullptr |
CLI::Option * | initTimeoutOpt = nullptr |
CLI::Option * | shutdownTimeoutOpt = nullptr |
CLI::Option * | noCloseNotifyIsEOFOpt = nullptr |
Additional Inherited Members | |
Protected Attributes inherited from net::config::ConfigSection | |
CLI::App * | section = nullptr |
Definition at line 43 of file ConfigTls.h.
|
explicitprotected |
Definition at line 30 of file ConfigTls.cpp.
std::string net::config::ConfigTls::getCaCert | ( | ) | const |
Definition at line 157 of file ConfigTls.cpp.
bool net::config::ConfigTls::getCaCertAcceptUnknown | ( | ) | const |
Definition at line 193 of file ConfigTls.cpp.
std::string net::config::ConfigTls::getCaCertDir | ( | ) | const |
Definition at line 169 of file ConfigTls.cpp.
bool net::config::ConfigTls::getCaCertUseDefaultDir | ( | ) | const |
Definition at line 181 of file ConfigTls.cpp.
std::string net::config::ConfigTls::getCert | ( | ) | const |
Definition at line 121 of file ConfigTls.cpp.
std::string net::config::ConfigTls::getCertKey | ( | ) | const |
Definition at line 133 of file ConfigTls.cpp.
std::string net::config::ConfigTls::getCertKeyPassword | ( | ) | const |
Definition at line 145 of file ConfigTls.cpp.
std::string net::config::ConfigTls::getCipherList | ( | ) | const |
Definition at line 205 of file ConfigTls.cpp.
utils::Timeval net::config::ConfigTls::getInitTimeout | ( | ) | const |
Definition at line 240 of file ConfigTls.cpp.
bool net::config::ConfigTls::getNoCloseNotifyIsEOF | ( | ) | const |
Definition at line 228 of file ConfigTls.cpp.
utils::Timeval net::config::ConfigTls::getShutdownTimeout | ( | ) | const |
Definition at line 252 of file ConfigTls.cpp.
ssl_option_t net::config::ConfigTls::getSslOptions | ( | ) | const |
Definition at line 217 of file ConfigTls.cpp.
ConfigTls & net::config::ConfigTls::setCaCert | ( | const std::string & | caCert | ) |
Definition at line 149 of file ConfigTls.cpp.
ConfigTls & net::config::ConfigTls::setCaCertAcceptUnknown | ( | bool | set = true | ) |
Definition at line 185 of file ConfigTls.cpp.
ConfigTls & net::config::ConfigTls::setCaCertDir | ( | const std::string & | caCertDir | ) |
Definition at line 161 of file ConfigTls.cpp.
ConfigTls & net::config::ConfigTls::setCaCertUseDefaultDir | ( | bool | set = true | ) |
Definition at line 173 of file ConfigTls.cpp.
ConfigTls & net::config::ConfigTls::setCert | ( | const std::string & | cert | ) |
Definition at line 113 of file ConfigTls.cpp.
ConfigTls & net::config::ConfigTls::setCertKey | ( | const std::string & | certKey | ) |
Definition at line 125 of file ConfigTls.cpp.
ConfigTls & net::config::ConfigTls::setCertKeyPassword | ( | const std::string & | certKeyPassword | ) |
Definition at line 137 of file ConfigTls.cpp.
ConfigTls & net::config::ConfigTls::setCipherList | ( | const std::string & | cipherList | ) |
Definition at line 197 of file ConfigTls.cpp.
ConfigTls & net::config::ConfigTls::setInitTimeout | ( | const utils::Timeval & | newInitTimeout | ) |
Definition at line 232 of file ConfigTls.cpp.
ConfigTls & net::config::ConfigTls::setNoCloseNotifyIsEOF | ( | bool | noCloseNotifyIsEOF = true | ) |
Definition at line 221 of file ConfigTls.cpp.
ConfigTls & net::config::ConfigTls::setShutdownTimeout | ( | const utils::Timeval & | newShutdownTimeout | ) |
Definition at line 244 of file ConfigTls.cpp.
ConfigTls & net::config::ConfigTls::setSslOptions | ( | ssl_option_t | sslOptions | ) |
Definition at line 209 of file ConfigTls.cpp.
|
private |
Definition at line 91 of file ConfigTls.h.
|
private |
Definition at line 89 of file ConfigTls.h.
|
private |
Definition at line 88 of file ConfigTls.h.
|
private |
Definition at line 90 of file ConfigTls.h.
|
private |
Definition at line 86 of file ConfigTls.h.
|
private |
Definition at line 87 of file ConfigTls.h.
|
private |
Definition at line 85 of file ConfigTls.h.
|
private |
Definition at line 92 of file ConfigTls.h.
|
private |
Definition at line 94 of file ConfigTls.h.
|
private |
Definition at line 96 of file ConfigTls.h.
|
private |
Definition at line 95 of file ConfigTls.h.
|
private |
Definition at line 93 of file ConfigTls.h.