#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 |
| Public Member Functions inherited from net::config::ConfigSection | |
| template<typename T> | |
| ConfigSection (ConfigInstance *instance, T *sectionPtr, const std::string &group="Sections") | |
| ~ConfigSection () override | |
| ConfigSection (const ConfigSection &)=delete | |
| ConfigSection (ConfigSection &&)=delete | |
| ConfigSection & | operator= (const ConfigSection &)=delete |
| Public Member Functions inherited from utils::SubCommand | |
| SubCommand (const SubCommand &)=delete | |
| SubCommand (SubCommand &&)=delete | |
| SubCommand & | operator= (const SubCommand &)=delete |
| SubCommand & | operator= (SubCommand &&)=delete |
| virtual | ~SubCommand () |
| std::string | getName () const |
| std::string | version () const |
| CLI::Option * | setConfig (const std::string &defaultConfigFile) const |
| CLI::Option * | setLogFile (const std::string &defaultLogFile) const |
| CLI::Option * | setVersionFlag (const std::string &version) const |
| bool | hasParent () const |
| SubCommand * | getParent () const |
| SubCommand * | allowExtras (bool allow=true) |
| SubCommand * | required (bool required=true, bool force=true) |
| SubCommand * | required (SubCommand *subCommand, bool required=true) |
| SubCommand * | required (CLI::Option *option, bool required=true) |
| bool | getRequired () const |
| SubCommand * | needs (SubCommand *subCommand, bool needs=true) |
| SubCommand * | disabled (SubCommand *subCommand, bool disabled=true) |
| SubCommand * | setRequireCallback (const std::function< void(void)> &callback) |
| SubCommand * | finalCallback (const std::function< void()> &finalCallback) |
| std::string | configToStr () const |
| std::string | help (const CLI::App *helpApp, const CLI::AppFormatMode &mode) const |
| template<typename NewSubCommand, typename... Args> | |
| NewSubCommand * | newSubCommand (Args &&... args) |
| template<typename RequestedSubCommand> | |
| RequestedSubCommand * | getSubCommand () |
| template<typename RequestedSubCommand> | |
| RequestedSubCommand * | getSubCommand () const |
| CLI::Option * | getOption (const std::string &name) const |
| CLI::Option * | addOption (const std::string &name, const std::string &description, const std::string &typeName, const CLI::Validator &validator) const |
| template<typename ValueTypeT> | |
| CLI::Option * | addOption (const std::string &name, const std::string &description, const std::string &typeName, ValueTypeT defaultValue, const CLI::Validator &validator) const |
| template<typename ValueTypeT> | |
| CLI::Option * | addOptionVariable (const std::string &name, ValueTypeT &variable, const std::string &description, const std::string &typeName, const CLI::Validator &additionalValidator) const |
| template<typename ValueTypeT> | |
| CLI::Option * | addOptionVariable (const std::string &name, ValueTypeT &variable, const std::string &description, const std::string &typeName, ValueTypeT defaultValue, const CLI::Validator &additionalValidator) const |
| CLI::Option * | addOptionFunction (const std::string &name, const std::function< void(const std::string &)> &callback, const std::string &description, const std::string &typeName, const CLI::Validator &validator) const |
| template<typename ValueTypeT> | |
| CLI::Option * | addOptionFunction (const std::string &name, const std::function< void(const std::string &)> &callback, const std::string &description, const std::string &typeName, ValueTypeT defaultValue, const CLI::Validator &validator) const |
| CLI::Option * | addFlag (const std::string &name, const std::string &description, const std::string &typeName, const CLI::Validator &validator) const |
| template<typename ValueTypeT> | |
| CLI::Option * | addFlag (const std::string &name, const std::string &description, const std::string &typeName, ValueTypeT defaultValue, const CLI::Validator &validator) const |
| CLI::Option * | addFlagFunction (const std::string &name, const std::function< void()> &callback, const std::string &description, const std::string &typeName, const CLI::Validator &validator) const |
| 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) const |
Static Public Attributes | |
| static constexpr std::string_view | NAME {"tls"} |
| static constexpr std::string_view | DESCRIPTION {"Configuration of SSL/TLS behavior"} |
Protected Member Functions | |
| template<typename ConcretConfigTls> | |
| ConfigTls (ConfigInstance *instance, ConcretConfigTls section) | |
| ~ConfigTls () override | |
| Protected Member Functions inherited from utils::SubCommand | |
| SubCommand (SubCommand *parent, std::shared_ptr< utils::AppWithPtr > appWithPtr, const std::string &group, bool final) | |
| template<typename ConcretSubCommand> | |
| SubCommand (SubCommand *parent, ConcretSubCommand *concretSubCommand, const std::string &group, bool final=true) | |
| void | parse (int argc, char *argv[]) const |
| SubCommand * | description (const std::string &description) |
| SubCommand * | footer (const std::string &footer) |
| void | removeSubCommand () |
| template<typename ValueTypeT> | |
| CLI::Option * | setDefaultValue (CLI::Option *option, const ValueTypeT &value, bool clear=true) const |
| CLI::Option * | setConfigurable (CLI::Option *option, bool configurable) const |
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 |
| bool | noCloseNotifyIsEOFOpt = false |
Static Private Attributes | |
| static float | tlsInitTimeout = TLS_INIT_TIMEOUT |
| static float | tlsShutdownTimeout = TLS_SHUTDOWN_TIMEOUT |
Additional Inherited Members | |
| Static Protected Member Functions inherited from utils::SubCommand | |
| static CLI::App * | getHelpTriggerApp () |
| static CLI::App * | getShowConfigTriggerApp () |
| static CLI::App * | getCommandlineTriggerApp () |
| Static Protected Attributes inherited from utils::SubCommand | |
| static std::shared_ptr< CLI::Formatter > | sectionFormatter = makeSectionFormatter() |
| static std::map< std::string, std::string > | aliases |
| static CLI::App * | helpTriggerApp = nullptr |
| static CLI::App * | showConfigTriggerApp = nullptr |
| static CLI::App * | commandlineTriggerApp = nullptr |
Definition at line 62 of file ConfigTls.h.
|
explicitprotected |
Definition at line 52 of file ConfigTls.hpp.
References utils::SubCommand::addFlag(), utils::SubCommand::addOption(), utils::SubCommand::addOption(), caCertAcceptUnknownOpt, caCertDirOpt, caCertOpt, caCertUseDefaultDirOpt, certKeyOpt, certKeyPasswordOpt, certOpt, cipherListOpt, initTimeoutOpt, shutdownTimeoutOpt, sslOptionsOpt, tlsInitTimeout, and tlsShutdownTimeout.
Referenced by net::config::ConfigTlsClient::ConfigTlsClient(), and net::config::ConfigTlsServer::ConfigTlsServer().
|
overrideprotected |
Definition at line 50 of file ConfigTls.cpp.
| std::string net::config::ConfigTls::getCaCert | ( | ) | const |
Definition at line 89 of file ConfigTls.cpp.
References caCertOpt.
Referenced by net::config::stream::tls::ConfigSocketServer< ConfigSocketServerBaseT >::getSslCtx().
| bool net::config::ConfigTls::getCaCertAcceptUnknown | ( | ) | const |
Definition at line 119 of file ConfigTls.cpp.
References caCertAcceptUnknownOpt.
Referenced by net::config::stream::tls::ConfigSocketServer< ConfigSocketServerBaseT >::getSslCtx().
| std::string net::config::ConfigTls::getCaCertDir | ( | ) | const |
Definition at line 99 of file ConfigTls.cpp.
References caCertDirOpt.
Referenced by net::config::stream::tls::ConfigSocketServer< ConfigSocketServerBaseT >::getSslCtx().
| bool net::config::ConfigTls::getCaCertUseDefaultDir | ( | ) | const |
Definition at line 109 of file ConfigTls.cpp.
References caCertUseDefaultDirOpt.
Referenced by net::config::stream::tls::ConfigSocketServer< ConfigSocketServerBaseT >::getSslCtx().
| std::string net::config::ConfigTls::getCert | ( | ) | const |
Definition at line 59 of file ConfigTls.cpp.
References certOpt.
Referenced by net::config::stream::tls::ConfigSocketServer< ConfigSocketServerBaseT >::getSslCtx().
| std::string net::config::ConfigTls::getCertKey | ( | ) | const |
Definition at line 69 of file ConfigTls.cpp.
References certKeyOpt.
Referenced by net::config::stream::tls::ConfigSocketServer< ConfigSocketServerBaseT >::getSslCtx().
| std::string net::config::ConfigTls::getCertKeyPassword | ( | ) | const |
Definition at line 79 of file ConfigTls.cpp.
References certKeyPasswordOpt.
Referenced by net::config::stream::tls::ConfigSocketServer< ConfigSocketServerBaseT >::getSslCtx().
| std::string net::config::ConfigTls::getCipherList | ( | ) | const |
Definition at line 129 of file ConfigTls.cpp.
References cipherListOpt.
Referenced by net::config::stream::tls::ConfigSocketServer< ConfigSocketServerBaseT >::getSslCtx().
| utils::Timeval net::config::ConfigTls::getInitTimeout | ( | ) | const |
Definition at line 159 of file ConfigTls.cpp.
References initTimeoutOpt.
| bool net::config::ConfigTls::getNoCloseNotifyIsEOF | ( | ) | const |
| utils::Timeval net::config::ConfigTls::getShutdownTimeout | ( | ) | const |
Definition at line 169 of file ConfigTls.cpp.
References shutdownTimeoutOpt.
| ssl_option_t net::config::ConfigTls::getSslOptions | ( | ) | const |
Definition at line 139 of file ConfigTls.cpp.
References sslOptionsOpt.
Referenced by net::config::stream::tls::ConfigSocketServer< ConfigSocketServerBaseT >::getSslCtx().
| ConfigTls & net::config::ConfigTls::setCaCert | ( | const std::string & | caCert | ) |
Definition at line 83 of file ConfigTls.cpp.
References caCertOpt, and utils::SubCommand::setDefaultValue().
| ConfigTls & net::config::ConfigTls::setCaCertAcceptUnknown | ( | bool | set = true | ) |
Definition at line 113 of file ConfigTls.cpp.
References caCertAcceptUnknownOpt, and utils::SubCommand::setDefaultValue().
| ConfigTls & net::config::ConfigTls::setCaCertDir | ( | const std::string & | caCertDir | ) |
Definition at line 93 of file ConfigTls.cpp.
References caCertDirOpt, and utils::SubCommand::setDefaultValue().
| ConfigTls & net::config::ConfigTls::setCaCertUseDefaultDir | ( | bool | set = true | ) |
Definition at line 103 of file ConfigTls.cpp.
References caCertUseDefaultDirOpt, and utils::SubCommand::setDefaultValue().
| ConfigTls & net::config::ConfigTls::setCert | ( | const std::string & | cert | ) |
Definition at line 53 of file ConfigTls.cpp.
References certOpt, and utils::SubCommand::setDefaultValue().
Referenced by main().
| ConfigTls & net::config::ConfigTls::setCertKey | ( | const std::string & | certKey | ) |
Definition at line 63 of file ConfigTls.cpp.
References certKeyOpt, and utils::SubCommand::setDefaultValue().
Referenced by main().
| ConfigTls & net::config::ConfigTls::setCertKeyPassword | ( | const std::string & | certKeyPassword | ) |
Definition at line 73 of file ConfigTls.cpp.
References certKeyPasswordOpt, and utils::SubCommand::setDefaultValue().
Referenced by main().
| ConfigTls & net::config::ConfigTls::setCipherList | ( | const std::string & | cipherList | ) |
Definition at line 123 of file ConfigTls.cpp.
References cipherListOpt, and utils::SubCommand::setDefaultValue().
| ConfigTls & net::config::ConfigTls::setInitTimeout | ( | const utils::Timeval & | newInitTimeout | ) |
Definition at line 153 of file ConfigTls.cpp.
References initTimeoutOpt, and utils::SubCommand::setDefaultValue().
| ConfigTls & net::config::ConfigTls::setNoCloseNotifyIsEOF | ( | bool | noCloseNotifyIsEOF = true | ) |
Definition at line 143 of file ConfigTls.cpp.
References noCloseNotifyIsEOFOpt.
| ConfigTls & net::config::ConfigTls::setShutdownTimeout | ( | const utils::Timeval & | newShutdownTimeout | ) |
Definition at line 163 of file ConfigTls.cpp.
References utils::SubCommand::setDefaultValue(), and shutdownTimeoutOpt.
| ConfigTls & net::config::ConfigTls::setSslOptions | ( | ssl_option_t | sslOptions | ) |
Definition at line 133 of file ConfigTls.cpp.
References utils::SubCommand::setDefaultValue(), and sslOptionsOpt.
|
private |
Definition at line 117 of file ConfigTls.h.
Referenced by ConfigTls(), getCaCertAcceptUnknown(), and setCaCertAcceptUnknown().
|
private |
Definition at line 115 of file ConfigTls.h.
Referenced by ConfigTls(), getCaCertDir(), and setCaCertDir().
|
private |
Definition at line 114 of file ConfigTls.h.
Referenced by ConfigTls(), getCaCert(), and setCaCert().
|
private |
Definition at line 116 of file ConfigTls.h.
Referenced by ConfigTls(), getCaCertUseDefaultDir(), and setCaCertUseDefaultDir().
|
private |
Definition at line 112 of file ConfigTls.h.
Referenced by ConfigTls(), getCertKey(), and setCertKey().
|
private |
Definition at line 113 of file ConfigTls.h.
Referenced by ConfigTls(), getCertKeyPassword(), and setCertKeyPassword().
|
private |
Definition at line 111 of file ConfigTls.h.
Referenced by ConfigTls(), getCert(), and setCert().
|
private |
Definition at line 118 of file ConfigTls.h.
Referenced by ConfigTls(), getCipherList(), and setCipherList().
|
staticconstexpr |
Definition at line 65 of file ConfigTls.h.
|
private |
Definition at line 120 of file ConfigTls.h.
Referenced by ConfigTls(), getInitTimeout(), and setInitTimeout().
|
staticconstexpr |
Definition at line 64 of file ConfigTls.h.
|
private |
Definition at line 122 of file ConfigTls.h.
Referenced by getNoCloseNotifyIsEOF(), and setNoCloseNotifyIsEOF().
|
private |
Definition at line 121 of file ConfigTls.h.
Referenced by ConfigTls(), getShutdownTimeout(), and setShutdownTimeout().
|
private |
Definition at line 119 of file ConfigTls.h.
Referenced by ConfigTls(), getSslOptions(), and setSslOptions().
|
staticprivate |
Definition at line 124 of file ConfigTls.h.
Referenced by ConfigTls().
|
staticprivate |
Definition at line 125 of file ConfigTls.h.
Referenced by ConfigTls().