diff options
author | Moritz Schulte <mo@g10code.com> | 2006-04-01 13:04:14 +0200 |
---|---|---|
committer | Moritz Schulte <mo@g10code.com> | 2006-04-01 13:04:14 +0200 |
commit | 4a31738bd1a302c76333a32b72ffc5ab78c71103 (patch) | |
tree | a0f3f620e2e9b75b038a888b8614bc8718e1b18b /agent | |
parent | Allo RMD160 signatures (diff) | |
download | gnupg2-4a31738bd1a302c76333a32b72ffc5ab78c71103.tar.xz gnupg2-4a31738bd1a302c76333a32b72ffc5ab78c71103.zip |
2006-04-01 Moritz Schulte <moritz@g10code.com>
* command-ssh.c (ssh_identity_register): Make KEY_GRIP_RAW be 20
instead of 21 bytes long; do not fill KEY_GRIP_RAW[20] with NUL
byte - KEY_GRIP_RAW is a raw binary string anyway.
Diffstat (limited to 'agent')
-rw-r--r-- | agent/ChangeLog | 6 | ||||
-rw-r--r-- | agent/command-ssh.c | 4 |
2 files changed, 7 insertions, 3 deletions
diff --git a/agent/ChangeLog b/agent/ChangeLog index fbb1a37e0..ed4c8a4cb 100644 --- a/agent/ChangeLog +++ b/agent/ChangeLog @@ -1,3 +1,9 @@ +2006-04-01 Moritz Schulte <moritz@g10code.com> + + * command-ssh.c (ssh_identity_register): Make KEY_GRIP_RAW be 20 + instead of 21 bytes long; do not fill KEY_GRIP_RAW[20] with NUL + byte - KEY_GRIP_RAW is a raw binary string anyway. + 2006-02-09 Werner Koch <wk@g10code.com> * call-scd.c (struct scd_local_s): New field next_local. diff --git a/agent/command-ssh.c b/agent/command-ssh.c index b8f0d20b0..be2a8385d 100644 --- a/agent/command-ssh.c +++ b/agent/command-ssh.c @@ -2321,7 +2321,7 @@ static gpg_error_t ssh_identity_register (ctrl_t ctrl, gcry_sexp_t key, int ttl) { gpg_error_t err; - unsigned char key_grip_raw[21]; + unsigned char key_grip_raw[20]; char key_grip[41]; unsigned char *buffer = NULL; unsigned int buffer_n; @@ -2334,8 +2334,6 @@ ssh_identity_register (ctrl_t ctrl, gcry_sexp_t key, int ttl) if (err) goto out; - key_grip_raw[sizeof (key_grip_raw) - 1] = 0; /* FIXME: Why?? */ - /* Check whether the key is already in our key storage. Don't do anything then. */ if ( !agent_key_available (key_grip_raw) ) |