diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2014-12-06 00:26:43 +0900 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2014-12-06 17:50:35 +0900 |
| commit | 73d752fb1cd01a9092191c9ac52ddb8fa378065f (patch) | |
| tree | a727e1ce50b9b855c1ed99811c2c4a9c7ecb88ab /src/OptionHandlerFactory.cc | |
| parent | 62fba76666648b4d907098675779585a367e6f5e (diff) | |
Add --min-tls-version option
The --min-tls-version option specifies minimum SSL/TLS version to
enable. Possible Values: SSLv3, TLSv1, TLSv1.1, TLSv1.2 Default: TLSv1
Diffstat (limited to 'src/OptionHandlerFactory.cc')
| -rw-r--r-- | src/OptionHandlerFactory.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/OptionHandlerFactory.cc b/src/OptionHandlerFactory.cc index dec0624a..f2f4eec9 100644 --- a/src/OptionHandlerFactory.cc +++ b/src/OptionHandlerFactory.cc @@ -584,6 +584,17 @@ std::vector<OptionHandler*> OptionHandlerFactory::createOptionHandlers() op->setChangeOptionForReserved(true); handlers.push_back(op); } +#ifdef ENABLE_SSL + { + OptionHandler* op(new ParameterOptionHandler + (PREF_MIN_TLS_VERSION, + TEXT_MIN_TLS_VERSION, + A2_V_TLS10, + { A2_V_SSL3, A2_V_TLS10, A2_V_TLS11, A2_V_TLS12 })); + op->addTag(TAG_ADVANCED); + handlers.push_back(op); + } +#endif // ENABLE_SSL { OptionHandler* op(new BooleanOptionHandler (PREF_NO_CONF, |
