mirror of
git://git.gnupg.org/gnupg.git
synced 2025-06-12 18:11:03 +02:00
Explain the "server is older than xxx warning".
* g10/call-agent.c (warn_version_mismatch): Print a note on how to restart the servers. * g10/call-dirmngr.c (warn_version_mismatch): Ditto. * sm/call-agent.c (warn_version_mismatch): Ditto. * sm/call-dirmngr.c (warn_version_mismatch): Ditto. -- We should move this fucntion to common. However, the status output functions are different and would need to be streamlined too. GnuPG-bug-id: 3117 Debian-bug-id: 860745 Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
dd56bc411e
commit
4ad5bc1b6d
@ -209,6 +209,13 @@ warn_version_mismatch (assuan_context_t ctx, const char *servername, int mode)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
log_info (_("WARNING: %s\n"), warn);
|
log_info (_("WARNING: %s\n"), warn);
|
||||||
|
if (!opt.quiet)
|
||||||
|
{
|
||||||
|
log_info (_("Note: Outdated servers may lack important"
|
||||||
|
" security fixes.\n"));
|
||||||
|
log_info (_("Note: Use the command \"%s\" to restart them.\n"),
|
||||||
|
"gpgconf --kill all");
|
||||||
|
}
|
||||||
write_status_strings (STATUS_WARNING, "server_version_mismatch 0",
|
write_status_strings (STATUS_WARNING, "server_version_mismatch 0",
|
||||||
" ", warn, NULL);
|
" ", warn, NULL);
|
||||||
xfree (warn);
|
xfree (warn);
|
||||||
|
@ -157,6 +157,14 @@ warn_version_mismatch (assuan_context_t ctx, const char *servername)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
log_info (_("WARNING: %s\n"), warn);
|
log_info (_("WARNING: %s\n"), warn);
|
||||||
|
if (!opt.quiet)
|
||||||
|
{
|
||||||
|
log_info (_("Note: Outdated servers may lack important"
|
||||||
|
" security fixes.\n"));
|
||||||
|
log_info (_("Note: Use the command \"%s\" to restart them.\n"),
|
||||||
|
"gpgconf --kill all");
|
||||||
|
}
|
||||||
|
|
||||||
write_status_strings (STATUS_WARNING, "server_version_mismatch 0",
|
write_status_strings (STATUS_WARNING, "server_version_mismatch 0",
|
||||||
" ", warn, NULL);
|
" ", warn, NULL);
|
||||||
xfree (warn);
|
xfree (warn);
|
||||||
|
@ -108,6 +108,13 @@ warn_version_mismatch (ctrl_t ctrl, assuan_context_t ctx,
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
log_info (_("WARNING: %s\n"), warn);
|
log_info (_("WARNING: %s\n"), warn);
|
||||||
|
if (!opt.quiet)
|
||||||
|
{
|
||||||
|
log_info (_("Note: Outdated servers may lack important"
|
||||||
|
" security fixes.\n"));
|
||||||
|
log_info (_("Note: Use the command \"%s\" to restart them.\n"),
|
||||||
|
"gpgconf --kill all");
|
||||||
|
}
|
||||||
gpgsm_status2 (ctrl, STATUS_WARNING, "server_version_mismatch 0",
|
gpgsm_status2 (ctrl, STATUS_WARNING, "server_version_mismatch 0",
|
||||||
warn, NULL);
|
warn, NULL);
|
||||||
xfree (warn);
|
xfree (warn);
|
||||||
|
@ -175,6 +175,13 @@ warn_version_mismatch (ctrl_t ctrl, assuan_context_t ctx,
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
log_info (_("WARNING: %s\n"), warn);
|
log_info (_("WARNING: %s\n"), warn);
|
||||||
|
if (!opt.quiet)
|
||||||
|
{
|
||||||
|
log_info (_("Note: Outdated servers may lack important"
|
||||||
|
" security fixes.\n"));
|
||||||
|
log_info (_("Note: Use the command \"%s\" to restart them.\n"),
|
||||||
|
"gpgconf --kill all");
|
||||||
|
}
|
||||||
gpgsm_status2 (ctrl, STATUS_WARNING, "server_version_mismatch 0",
|
gpgsm_status2 (ctrl, STATUS_WARNING, "server_version_mismatch 0",
|
||||||
warn, NULL);
|
warn, NULL);
|
||||||
xfree (warn);
|
xfree (warn);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user