aboutsummaryrefslogtreecommitdiffstats
path: root/agent/findkey.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2013-02-22 03:55:11 +0000
committerNIIBE Yutaka <[email protected]>2013-02-22 03:55:11 +0000
commit3c3648e720b8014828573bd708c88ba4775014e3 (patch)
treea80beffc08b31684e94fa626dba70f5a157b6bca /agent/findkey.c
parentgpg: fix keytocard and support ECC card for key attribute. (diff)
downloadgnupg-3c3648e720b8014828573bd708c88ba4775014e3.tar.gz
gnupg-3c3648e720b8014828573bd708c88ba4775014e3.zip
agent: fix two bugs.
* agent/command.c (cmd_keytocard): Decrement KEYDATALEN. * agent/findkey.c (agent_public_key_from_file): Increment for ELEMS. -- For ECDSA and ECDH, there are 6 elements.
Diffstat (limited to 'agent/findkey.c')
-rw-r--r--agent/findkey.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/agent/findkey.c b/agent/findkey.c
index b17870ef7..ebdcc038e 100644
--- a/agent/findkey.c
+++ b/agent/findkey.c
@@ -828,7 +828,7 @@ agent_public_key_from_file (ctrl_t ctrl,
int i, idx;
gcry_sexp_t s_skey;
char algoname[6];
- char elems[6];
+ char elems[7];
gcry_sexp_t uri_sexp, comment_sexp;
const char *uri, *comment;
size_t uri_length, comment_length;