aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2015-08-12 01:23:40 +0000
committerNIIBE Yutaka <[email protected]>2015-08-12 01:23:40 +0000
commit80521c3ff900a09a1b382869783187c463144c77 (patch)
treed68119612788a594b4eaecf9b63293f03afbd856
parentsm: Revert to use SHA-1 for CSR generation. (diff)
downloadgnupg-80521c3ff900a09a1b382869783187c463144c77.tar.gz
gnupg-80521c3ff900a09a1b382869783187c463144c77.zip
g10: fix --card-status creating stub.
* g10/getkey.c (get_seckeyblock_byfprint): Require exact match.
-rw-r--r--g10/getkey.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/g10/getkey.c b/g10/getkey.c
index 6c14683d4..476445f25 100644
--- a/g10/getkey.c
+++ b/g10/getkey.c
@@ -1414,6 +1414,7 @@ get_seckeyblock_byfprint (KBNODE *ret_keyblock, const byte *fprint,
return G10ERR_GENERAL; /* Oops */
memset (&ctx, 0, sizeof ctx);
+ ctx.exact = 1 ;
ctx.not_allocated = 1;
ctx.kr_handle = keydb_new (1);
ctx.nitems = 1;