}
}
+static void
+man_command_unsupported(const char *command_name)
+{
+ msg(M_CLIENT, "ERROR: The '%s' command is not supported by the current daemon mode", command_name);
+}
+
static void
man_status(struct management *man, const int version, struct status_output *so)
{
}
else
{
- msg(M_CLIENT, "ERROR: The 'status' command is not supported by the current daemon mode");
+ man_command_unsupported("status");
}
}
}
else
{
- msg(M_CLIENT, "ERROR: The 'kill' command is not supported by the current daemon mode");
+ man_command_unsupported("kill");
}
gc_free(&gc);
}
else
{
- msg(M_CLIENT, "ERROR: The 'net' command is not supported by the current daemon mode");
+ man_command_unsupported("net");
}
}
}
else
{
- msg(M_CLIENT, "ERROR: This command is not supported by the current daemon mode");
+ man_command_unsupported("cr-repsonse");
}
}
#ifdef ENABLE_PKCS11
}
else
{
- msg(M_CLIENT, "ERROR: The remote-entry-count command is not supported by the current daemon mode");
+ man_command_unsupported("remote-entry-count");
}
}
}
else
{
- msg(M_CLIENT, "ERROR: The remote-entry command is not supported by the current daemon mode");
+ man_command_unsupported("remote-entry-get");
}
}
}
else
{
- msg(M_CLIENT, "ERROR: The client-auth command is not supported by the current daemon mode");
+ man_command_unsupported("client-auth");
}
break;
}
else
{
- msg(M_CLIENT, "ERROR: The client-pending-auth command is not supported by the current daemon mode");
+ man_command_unsupported("client-pending-auth");
}
}
}
}
else
{
- msg(M_CLIENT, "ERROR: The client-deny command is not supported by the current daemon mode");
+ man_command_unsupported("client-deny");
}
}
}
}
else
{
- msg(M_CLIENT, "ERROR: The client-kill command is not supported by the current daemon mode");
+ man_command_unsupported("client-kill");
}
}
}
}
else
{
- msg(M_CLIENT, "ERROR: The nclients command is not supported by the current daemon mode");
+ man_command_unsupported("nclients");
}
}
}
else
{
- msg(M_CLIENT, "ERROR: The proxy command is not supported by the current daemon mode");
+ man_command_unsupported("proxy");
}
}
}
else
{
- msg(M_CLIENT, "ERROR: The remote command is not supported by the current daemon mode");
+ man_command_unsupported("remote");
}
}