mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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.
This commit is contained in:
parent
7d376ffa32
commit
3c3648e720
2 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue