From 7454ef1d0b9f667ece3ccffb6ceecae90ffe0ee7 Mon Sep 17 00:00:00 2001 From: MassimilianoPinto Date: Wed, 14 Dec 2016 15:59:28 +0100 Subject: [PATCH] MXS-1064: Encryption options to "show service ..." MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The binlog encryption options are reported by “show service $service_name” of binlog router if the encryption is enabled. --- server/modules/routing/binlogrouter/blr.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/server/modules/routing/binlogrouter/blr.c b/server/modules/routing/binlogrouter/blr.c index e103265e8..89db59cbc 100644 --- a/server/modules/routing/binlogrouter/blr.c +++ b/server/modules/routing/binlogrouter/blr.c @@ -1274,6 +1274,18 @@ diagnostics(ROUTER *router, DCB *dcb) } } + /* Binlog Encryption options */ + if (router_inst->encryption.enabled) + { + dcb_printf(dcb, "\tBinlog Encryption is ON:\n"); + dcb_printf(dcb, "\t\tEncryption Key File: %s\n", + router_inst->encryption.key_management_filename); + dcb_printf(dcb, "\t\tEncryption Key Algorithm: %s\n", + blr_get_encryption_algorithm(router_inst->encryption.encryption_algorithm)); + dcb_printf(dcb, "\t\tEncryption Key length: %lu bits\n", + 8 * router_inst->encryption.key_len); + } + dcb_printf(dcb, "\tMaster connection state: %s\n", blrm_states[router_inst->master_state]);