[Pkg-gnupg-commit] [gpgme] 12/132: cpp: Fix update of partial key in verifyresult

Daniel Kahn Gillmor dkg at fifthhorseman.net
Wed Apr 26 01:00:47 UTC 2017


This is an automated email from the git hooks/post-receive script.

dkg pushed a commit to branch experimental
in repository gpgme.

commit 5673f3e54af535155893290a685b3afb44c7f58d
Author: Andre Heinecke <aheinecke at intevation.de>
Date:   Thu Dec 15 11:24:43 2016 +0100

    cpp: Fix update of partial key in verifyresult
    
    * lang/cpp/src/verificationresult.cpp
    (Signature::key(bool,bool)): Don't update the returned copy
    but the actual key of the signature.
    
    --
    The whole point of the update is to change the partial key
    from the signature (e.g. only fingerprint and one uid as we
    would have from tofu) to a fully keylisted one.
---
 lang/cpp/src/verificationresult.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lang/cpp/src/verificationresult.cpp b/lang/cpp/src/verificationresult.cpp
index 23c458e..42e483c 100644
--- a/lang/cpp/src/verificationresult.cpp
+++ b/lang/cpp/src/verificationresult.cpp
@@ -413,7 +413,8 @@ GpgME::Key GpgME::Signature::key(bool search, bool update) const
         }
     }
     if (update) {
-        ret.update();
+        d->keys[idx].update();
+        ret = d->keys[idx];
     }
     return ret;
 }

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gpgme.git



More information about the Pkg-gnupg-commit mailing list