diff options
author | Andre Heinecke <[email protected]> | 2016-12-15 10:24:43 +0000 |
---|---|---|
committer | Andre Heinecke <[email protected]> | 2016-12-15 10:39:12 +0000 |
commit | 5673f3e54af535155893290a685b3afb44c7f58d (patch) | |
tree | 9942d63ef8693b217007e1088a6caa756845d706 /lang/cpp | |
parent | doc: Let's suggest GNU guidelines for bit checking. (diff) | |
download | gpgme-5673f3e54af535155893290a685b3afb44c7f58d.tar.gz gpgme-5673f3e54af535155893290a685b3afb44c7f58d.zip |
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.
Diffstat (limited to '')
-rw-r--r-- | lang/cpp/src/verificationresult.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lang/cpp/src/verificationresult.cpp b/lang/cpp/src/verificationresult.cpp index 23c458e1..42e483c4 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; } |