From 91eb78fc3ab7e399296354734c8ff0bd239a42ed Mon Sep 17 00:00:00 2001 From: Philipp Schafft Date: Mon, 9 Feb 2015 12:14:16 +0000 Subject: [PATCH] Feature: Expose TLS status in tags. This exposes the TLS status as tag in the tag. The tag contains a bool ("true" or "false"). TLS mode, version and other parameters are out of the scope of this tag and may be added as independed tags in later commits. --- src/admin.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/admin.c b/src/admin.c index f9459a8d..9621fcc5 100644 --- a/src/admin.c +++ b/src/admin.c @@ -697,6 +697,8 @@ static inline xmlNodePtr __add_listener(client_t *client, if (client->role) xmlNewChild(node, NULL, XMLSTR("role"), XMLSTR(client->role)); + xmlNewChild(node, NULL, XMLSTR("tls"), XMLSTR(client->con->ssl ? "true" : "false")); + return node; }