From 2aa42baaf3dd7c3ae613ae0c61760a17c8adfcd0 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Fri, 8 Jan 2016 10:33:19 +0100 Subject: Print warnings if old daemon versions are used. * common/status.h (STATUS_WARNING): New. * g10/call-agent.c (warn_version_mismatch): New. (start_agent): Call warn function. * g10/call-dirmngr.c: Include status.h. (warn_version_mismatch): New. (create_context): Call warn function. * sm/call-agent.c (warn_version_mismatch): New. (start_agent): Call warn function. (gpgsm_agent_learn): Call warn function. * sm/call-dirmngr.c (warn_version_mismatch): New. (prepare_dirmngr): Call warn function. -- We have seen too often bug reports which are due to still running old versions of the daemons. To catch this problematic use we now print warning messages and also provide the warning via the status interface. Signed-off-by: Werner Koch --- common/status.h | 1 + 1 file changed, 1 insertion(+) (limited to 'common/status.h') diff --git a/common/status.h b/common/status.h index 509e04439..e50827fe0 100644 --- a/common/status.h +++ b/common/status.h @@ -141,6 +141,7 @@ enum STATUS_PLAINTEXT_FOLLOWS, /* Used by g13-syshelp */ STATUS_ERROR, + STATUS_WARNING, STATUS_SUCCESS, STATUS_FAILURE, -- cgit v1.2.3