summaryrefslogtreecommitdiff
path: root/src/OptionHandlerFactory.cc
diff options
context:
space:
mode:
authorNils Maier <maierman@web.de>2013-04-08 04:12:31 +0200
committerNils Maier <maierman@web.de>2013-04-08 06:45:53 +0200
commit82a861f8d88bbe5d978dfa2ebfc184d903981ead (patch)
treef47d0dc583bc9181a571555138587fa5a3b13858 /src/OptionHandlerFactory.cc
parent89cf6c046833c578e153f71b9ad40817464d0ba5 (diff)
AppleTLS: Support credentials via KeyChain fingerprints
Diffstat (limited to 'src/OptionHandlerFactory.cc')
-rw-r--r--src/OptionHandlerFactory.cc13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/OptionHandlerFactory.cc b/src/OptionHandlerFactory.cc
index f5cb61fe..835d2388 100644
--- a/src/OptionHandlerFactory.cc
+++ b/src/OptionHandlerFactory.cc
@@ -788,11 +788,20 @@ std::vector<OptionHandler*> OptionHandlerFactory::createOptionHandlers()
handlers.push_back(op);
}
{
- OptionHandler* op(new LocalFilePathOptionHandler
+ OptionHandler* op(
+#ifdef HAVE_APPLETLS
+ new DefaultOptionHandler
+ (PREF_RPC_CERTIFICATE,
+ TEXT_RPC_CERTIFICATE,
+ NO_DEFAULT_VALUE)
+#else // HAVE_APPLETLS
+ new LocalFilePathOptionHandler
(PREF_RPC_CERTIFICATE,
TEXT_RPC_CERTIFICATE,
NO_DEFAULT_VALUE,
- false));
+ false)
+#endif
+ );
op->addTag(TAG_RPC);
handlers.push_back(op);
}