Print warnings if old daemon versions are used.
authorWerner Koch <wk@gnupg.org>
Fri, 8 Jan 2016 09:33:19 +0000 (10:33 +0100)
committerWerner Koch <wk@gnupg.org>
Fri, 8 Jan 2016 09:33:19 +0000 (10:33 +0100)
commit2aa42baaf3dd7c3ae613ae0c61760a17c8adfcd0
tree999020286b5be3264f6803aabb486e081482a69e
parent4d7ac43ff71fdadfd2e04621f74840a82fbe788a
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 <wk@gnupg.org>
common/status.h
doc/DETAILS
g10/call-agent.c
g10/call-dirmngr.c
sm/call-agent.c
sm/call-dirmngr.c