Page MenuHome GnuPG

507_0001-Check-gpg-agent-version-before-2.1-migration.patch
AbandonedPublic

Authored by aheinecke on Sep 19 2014, 7:47 PM.

Details

Reviewers
None
Summary

From d3c8bbf2660a75cfccaddd7fddc52cd53bb266e7 Mon Sep 17 00:00:00 2001
From: Andre Heinecke <aheinecke@intevation.de>
Date: Fri, 19 Sep 2014 19:38:13 +0200
Subject: [PATCH] Check gpg-agent version before 2.1 migration

  • g10/call-agent.c, g10/call-agent.h (agent_get_version): New.
  • g10/migrate.c (migrate_secring): Abort migration if agent_get_version returns not at least 2.1.0

GnuPG-bug-id: 1718

On the first installation of GnuPG 2.1 it is likely that an
old gpg-agent is still running in the environment. In that
case the migration would fail.

Signed-off-by: Andre Heinecke <aheinecke@intevation.de>

g10/call-agent.c | 30 ++++++++++++++++++++++++++++++
g10/call-agent.h | 2 ++
g10/migrate.c | 23 +++++++++++++++++++++++
3 files changed, 55 insertions(+)

1.9.1

Test Plan

Diff Detail

Lint
Lint Skipped
Unit
Unit Tests Skipped