Page MenuHome GnuPG

648_0001-sm-Fix-cert-storage-for-ephemeral-certs.patch
AbandonedPublic

Authored by aheinecke on Jun 24 2015, 7:09 PM.

Details

Reviewers
None
Summary

From 10d5e392eb48249b8975819b37532dd7c87aff00 Mon Sep 17 00:00:00 2001
From: Andre Heinecke <aheinecke@intevation.de>
Date: Wed, 24 Jun 2015 18:55:24 +0200
Subject: [PATCH] sm: Fix cert storage for ephemeral certs

  • sm/keydb.c (keydb_store_cert): Clear ephemeral flag for

existing certs if store should not be ephemeral.

Previously keydb_store_cert would ignore ephemeral certificates
when asked to store a non ephemeral certificate and insert
it again without the flags. This resulted in duplicated
certificates in the keybox.

GnuPG-bug-id: 1921

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

sm/keydb.c | 19 +++++++++++++++++--
1 file changed, 17 insertions(+), 2 deletions(-)

1.9.1

Test Plan

Diff Detail

Lint
Lint Skipped
Unit
Unit Tests Skipped