MXS-1064: Encryption options to "show service ..."

The binlog encryption options are reported by “show service
$service_name” of binlog router if the encryption is enabled.
This commit is contained in:
MassimilianoPinto 2016-12-14 15:59:28 +01:00
parent 3a96482c23
commit 7454ef1d0b

View File

@ -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]);