summaryrefslogtreecommitdiff
path: root/cipher
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2005-02-25 10:48:10 +0000
committerWerner Koch <wk@gnupg.org>2005-02-25 10:48:10 +0000
commit03e7d919e079f0b7fee9f1c153f7283db28f1070 (patch)
tree06dc326fe5b873800c10bddadea2146bf23e3a63 /cipher
parent994669904713bddf7b578badfcc9aed8e496c96a (diff)
downloadlibgcrypt-03e7d919e079f0b7fee9f1c153f7283db28f1070.tar.gz
(gcry_pk_get_keygrip): Allow for shadowed-private-key.
Diffstat (limited to 'cipher')
-rw-r--r--cipher/ChangeLog4
-rw-r--r--cipher/pubkey.c2
2 files changed, 6 insertions, 0 deletions
diff --git a/cipher/ChangeLog b/cipher/ChangeLog
index 3ace8abd..bc2a2ec2 100644
--- a/cipher/ChangeLog
+++ b/cipher/ChangeLog
@@ -1,3 +1,7 @@
+2005-02-25 Werner Koch <wk@g10code.com>
+
+ * pubkey.c (gcry_pk_get_keygrip): Allow for shadowed-private-key.
+
2005-02-13 Moritz Schulte <moritz@g10code.com>
* serpent.c: Updated from 1.2 branch:
diff --git a/cipher/pubkey.c b/cipher/pubkey.c
index af2890f4..b1d9b828 100644
--- a/cipher/pubkey.c
+++ b/cipher/pubkey.c
@@ -2086,6 +2086,8 @@ gcry_pk_get_keygrip (gcry_sexp_t key, unsigned char *array)
if (! list)
list = gcry_sexp_find_token (key, "protected-private-key", 0);
if (! list)
+ list = gcry_sexp_find_token (key, "shadowed-private-key", 0);
+ if (! list)
return NULL; /* No public- or private-key object. */
l2 = gcry_sexp_cadr (list);