diff options
author | Artyom V. Poptsov <poptsov.artyom@gmail.com> | 2014-09-29 07:18:21 +0400 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2014-10-02 08:30:30 +0200 |
commit | a033b93c616f4a81afc3fc6a017396d507d96c19 (patch) | |
tree | 7de3fc5ae090ae4649483e1dd3a9091a40f3fe74 | |
parent | b7856780a932df08963587ab763a6ef17af90045 (diff) | |
download | libssh-a033b93c616f4a81afc3fc6a017396d507d96c19.tar.gz libssh-a033b93c616f4a81afc3fc6a017396d507d96c19.tar.xz libssh-a033b93c616f4a81afc3fc6a017396d507d96c19.zip |
pki_gcrypt: Initialize 'type_c' in 'pki_do_sign_sessionid'
Add missing initialization of 'type_c' field of a SSH signature in
'pki_do_sign_sessionid' procedure.
If libssh is compiled with GCrypt, 'dh_handshake_server' fails with
"Could not sign the session id" error. The change fixes that.
Signed-off-by: Artyom V. Poptsov <poptsov.artyom@gmail.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit aaae6cd97d3b99061fcf5444d491895690fb4cde)
-rw-r--r-- | src/pki_gcrypt.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pki_gcrypt.c b/src/pki_gcrypt.c index e696e422..f78f28b2 100644 --- a/src/pki_gcrypt.c +++ b/src/pki_gcrypt.c @@ -1657,6 +1657,7 @@ ssh_signature pki_do_sign_sessionid(const ssh_key key, return NULL; } sig->type = key->type; + sig->type_c = key->type_c; switch(key->type) { case SSH_KEYTYPE_DSS: |