diff options
| author | Nils Maier <maierman@web.de> | 2013-09-30 16:11:38 +0200 |
|---|---|---|
| committer | Nils Maier <maierman@web.de> | 2013-09-30 16:37:01 +0200 |
| commit | 3b9a3853058daf871a312081658e572ff135dcc2 (patch) | |
| tree | a9dd58fa1345831240f531fa1000710eee841aa5 /src/OptionHandlerFactory.cc | |
| parent | 4c84af31be3ef0c23f896e3fc88a7ec5ef2778df (diff) | |
AppleTLS: Enable --certificate
Tested against self-signed CA with nginx
Diffstat (limited to 'src/OptionHandlerFactory.cc')
| -rw-r--r-- | src/OptionHandlerFactory.cc | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/OptionHandlerFactory.cc b/src/OptionHandlerFactory.cc index eba55c70..304de9e0 100644 --- a/src/OptionHandlerFactory.cc +++ b/src/OptionHandlerFactory.cc @@ -1155,11 +1155,20 @@ std::vector<OptionHandler*> OptionHandlerFactory::createOptionHandlers() handlers.push_back(op); } { - OptionHandler* op(new DefaultOptionHandler + OptionHandler* op( +#ifdef HAVE_APPLETLS + new DefaultOptionHandler + (PREF_CERTIFICATE, + TEXT_CERTIFICATE, + NO_DEFAULT_VALUE) +#else // HAVE_APPLETLS + new LocalFilePathOptionHandler (PREF_CERTIFICATE, TEXT_CERTIFICATE, NO_DEFAULT_VALUE, - PATH_TO_FILE)); + false) +#endif // HAVE_APPLETLS + ); op->addTag(TAG_HTTP); op->addTag(TAG_HTTPS); handlers.push_back(op); |
