From 4ab69f6e1f74be7d12769bf531d665ec14ce7ed7 Mon Sep 17 00:00:00 2001 From: Pat Thoyts Date: Sat, 17 Oct 2020 10:47:41 +0100 Subject: [PATCH] core: added cafile and cadir to the tls options. --- core.tcl | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/core.tcl b/core.tcl index 199c714..6f015f8 100644 --- a/core.tcl +++ b/core.tcl @@ -26,6 +26,8 @@ namespace eval ::xmppd { domain {} certfile {} keyfile {} + cadir {} + cafile {} modules {} features {} endpoints {} @@ -48,6 +50,9 @@ namespace eval ::xmppd { stanzas urn:ietf:params:xml:ns:xmpp-stanzas session urn:ietf:params:xml:ns:xmpp-session xml http://www.w3.org/XML/1998/namespace + ping urn:xmpp:ping + privacy jabber:iq:privacy + roster jabber:iq:roster } } @@ -141,6 +146,20 @@ proc ::xmppd::configure {args} { set options(keyfile) [Pop args 1] } } + -cafile { + if {$cget} { + return $options(cafile) + } else { + set options(cafile) [Pop args 1] + } + } + -cadir { + if {$cget} { + return $options(cadir) + } else { + set options(cadir) [Pop args 1] + } + } -features { if {$cget} { return $options(features) } } -- 2.23.0