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) | |
![]() | |
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 | |
![]() | |
CLI::App * | section = nullptr |
Definition at line 65 of file ConfigTls.h.
|
explicitprotected |
Definition at line 52 of file ConfigTls.cpp.
References net::config::ConfigSection::addFlag(), net::config::ConfigSection::addOption(), net::config::ConfigSection::addOption(), caCertAcceptUnknownOpt, caCertDirOpt, caCertOpt, caCertUseDefaultDirOpt, certKeyOpt, certKeyPasswordOpt, certOpt, cipherListOpt, net::config::ConfigSection::ConfigSection(), noCloseNotifyIsEOFOpt, and sslOptionsOpt.
Referenced by net::config::ConfigTlsClient::ConfigTlsClient(), and net::config::ConfigTlsServer::ConfigTlsServer().
std::string net::config::ConfigTls::getCaCert | ( | ) | const |
Definition at line 179 of file ConfigTls.cpp.
References caCertOpt.
Referenced by net::config::stream::tls::ConfigSocketClient< ConfigSocketClientBaseT >::getSslCtx(), and net::config::stream::tls::ConfigSocketServer< ConfigSocketServerBaseT >::getSslCtx().
bool net::config::ConfigTls::getCaCertAcceptUnknown | ( | ) | const |
Definition at line 215 of file ConfigTls.cpp.
References caCertAcceptUnknownOpt.
Referenced by net::config::stream::tls::ConfigSocketClient< ConfigSocketClientBaseT >::getSslCtx(), and net::config::stream::tls::ConfigSocketServer< ConfigSocketServerBaseT >::getSslCtx().
std::string net::config::ConfigTls::getCaCertDir | ( | ) | const |
Definition at line 191 of file ConfigTls.cpp.
References caCertDirOpt.
Referenced by net::config::stream::tls::ConfigSocketClient< ConfigSocketClientBaseT >::getSslCtx(), and net::config::stream::tls::ConfigSocketServer< ConfigSocketServerBaseT >::getSslCtx().
bool net::config::ConfigTls::getCaCertUseDefaultDir | ( | ) | const |
Definition at line 203 of file ConfigTls.cpp.
References caCertUseDefaultDirOpt.
Referenced by net::config::stream::tls::ConfigSocketClient< ConfigSocketClientBaseT >::getSslCtx(), and net::config::stream::tls::ConfigSocketServer< ConfigSocketServerBaseT >::getSslCtx().
std::string net::config::ConfigTls::getCert | ( | ) | const |
Definition at line 143 of file ConfigTls.cpp.
References certOpt.
Referenced by net::config::stream::tls::ConfigSocketClient< ConfigSocketClientBaseT >::getSslCtx(), and net::config::stream::tls::ConfigSocketServer< ConfigSocketServerBaseT >::getSslCtx().
std::string net::config::ConfigTls::getCertKey | ( | ) | const |
Definition at line 155 of file ConfigTls.cpp.
References certKeyOpt.
Referenced by net::config::stream::tls::ConfigSocketClient< ConfigSocketClientBaseT >::getSslCtx(), and net::config::stream::tls::ConfigSocketServer< ConfigSocketServerBaseT >::getSslCtx().
std::string net::config::ConfigTls::getCertKeyPassword | ( | ) | const |
Definition at line 167 of file ConfigTls.cpp.
References certKeyPasswordOpt.
Referenced by net::config::stream::tls::ConfigSocketClient< ConfigSocketClientBaseT >::getSslCtx(), and net::config::stream::tls::ConfigSocketServer< ConfigSocketServerBaseT >::getSslCtx().
std::string net::config::ConfigTls::getCipherList | ( | ) | const |
Definition at line 227 of file ConfigTls.cpp.
References cipherListOpt.
Referenced by net::config::stream::tls::ConfigSocketClient< ConfigSocketClientBaseT >::getSslCtx(), and net::config::stream::tls::ConfigSocketServer< ConfigSocketServerBaseT >::getSslCtx().
utils::Timeval net::config::ConfigTls::getInitTimeout | ( | ) | const |
Definition at line 262 of file ConfigTls.cpp.
References initTimeoutOpt.
bool net::config::ConfigTls::getNoCloseNotifyIsEOF | ( | ) | const |
Definition at line 250 of file ConfigTls.cpp.
References noCloseNotifyIsEOFOpt.
utils::Timeval net::config::ConfigTls::getShutdownTimeout | ( | ) | const |
Definition at line 274 of file ConfigTls.cpp.
References shutdownTimeoutOpt.
ssl_option_t net::config::ConfigTls::getSslOptions | ( | ) | const |
Definition at line 239 of file ConfigTls.cpp.
References sslOptionsOpt.
Referenced by net::config::stream::tls::ConfigSocketClient< ConfigSocketClientBaseT >::getSslCtx(), and net::config::stream::tls::ConfigSocketServer< ConfigSocketServerBaseT >::getSslCtx().
ConfigTls & net::config::ConfigTls::setCaCert | ( | const std::string & | caCert | ) |
Definition at line 171 of file ConfigTls.cpp.
References caCertOpt.
ConfigTls & net::config::ConfigTls::setCaCertAcceptUnknown | ( | bool | set = true | ) |
Definition at line 207 of file ConfigTls.cpp.
References caCertAcceptUnknownOpt.
ConfigTls & net::config::ConfigTls::setCaCertDir | ( | const std::string & | caCertDir | ) |
Definition at line 183 of file ConfigTls.cpp.
References caCertDirOpt.
ConfigTls & net::config::ConfigTls::setCaCertUseDefaultDir | ( | bool | set = true | ) |
Definition at line 195 of file ConfigTls.cpp.
References caCertUseDefaultDirOpt.
ConfigTls & net::config::ConfigTls::setCert | ( | const std::string & | cert | ) |
Definition at line 135 of file ConfigTls.cpp.
References certOpt.
Referenced by main().
ConfigTls & net::config::ConfigTls::setCertKey | ( | const std::string & | certKey | ) |
Definition at line 147 of file ConfigTls.cpp.
References certKeyOpt.
Referenced by main().
ConfigTls & net::config::ConfigTls::setCertKeyPassword | ( | const std::string & | certKeyPassword | ) |
Definition at line 159 of file ConfigTls.cpp.
References certKeyPasswordOpt.
Referenced by main().
ConfigTls & net::config::ConfigTls::setCipherList | ( | const std::string & | cipherList | ) |
Definition at line 219 of file ConfigTls.cpp.
References cipherListOpt.
ConfigTls & net::config::ConfigTls::setInitTimeout | ( | const utils::Timeval & | newInitTimeout | ) |
Definition at line 254 of file ConfigTls.cpp.
References initTimeoutOpt.
ConfigTls & net::config::ConfigTls::setNoCloseNotifyIsEOF | ( | bool | noCloseNotifyIsEOF = true | ) |
Definition at line 243 of file ConfigTls.cpp.
References noCloseNotifyIsEOFOpt.
ConfigTls & net::config::ConfigTls::setShutdownTimeout | ( | const utils::Timeval & | newShutdownTimeout | ) |
Definition at line 266 of file ConfigTls.cpp.
References shutdownTimeoutOpt.
ConfigTls & net::config::ConfigTls::setSslOptions | ( | ssl_option_t | sslOptions | ) |
Definition at line 231 of file ConfigTls.cpp.
References sslOptionsOpt.
|
private |
Definition at line 113 of file ConfigTls.h.
Referenced by ConfigTls(), getCaCertAcceptUnknown(), and setCaCertAcceptUnknown().
|
private |
Definition at line 111 of file ConfigTls.h.
Referenced by ConfigTls(), getCaCertDir(), and setCaCertDir().
|
private |
Definition at line 110 of file ConfigTls.h.
Referenced by ConfigTls(), getCaCert(), and setCaCert().
|
private |
Definition at line 112 of file ConfigTls.h.
Referenced by ConfigTls(), getCaCertUseDefaultDir(), and setCaCertUseDefaultDir().
|
private |
Definition at line 108 of file ConfigTls.h.
Referenced by ConfigTls(), getCertKey(), and setCertKey().
|
private |
Definition at line 109 of file ConfigTls.h.
Referenced by ConfigTls(), getCertKeyPassword(), and setCertKeyPassword().
|
private |
Definition at line 107 of file ConfigTls.h.
Referenced by ConfigTls(), getCert(), and setCert().
|
private |
Definition at line 114 of file ConfigTls.h.
Referenced by ConfigTls(), getCipherList(), and setCipherList().
|
private |
Definition at line 116 of file ConfigTls.h.
Referenced by getInitTimeout(), and setInitTimeout().
|
private |
Definition at line 118 of file ConfigTls.h.
Referenced by ConfigTls(), getNoCloseNotifyIsEOF(), and setNoCloseNotifyIsEOF().
|
private |
Definition at line 117 of file ConfigTls.h.
Referenced by getShutdownTimeout(), and setShutdownTimeout().
|
private |
Definition at line 115 of file ConfigTls.h.
Referenced by ConfigTls(), getSslOptions(), and setSslOptions().