From 73d752fb1cd01a9092191c9ac52ddb8fa378065f Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sat, 6 Dec 2014 00:26:43 +0900 Subject: 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 --- src/OptionHandlerFactory.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/OptionHandlerFactory.cc') 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 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, -- cgit