summaryrefslogtreecommitdiffstats
path: root/include/libssh
diff options
context:
space:
mode:
authorAndreas Schneider <asn@cryptomilk.org>2011-08-26 23:13:57 +0200
committerAndreas Schneider <asn@cryptomilk.org>2011-08-26 23:13:57 +0200
commit79ed1bc601d20c14d4b514abecdebcf454baf322 (patch)
tree532b37d08646d3cf630dff842de9e522a6a43873 /include/libssh
parent228e2edac5ebb0e21e9eac3f19c3200d6d1e65bf (diff)
downloadlibssh-79ed1bc601d20c14d4b514abecdebcf454baf322.tar.gz
libssh-79ed1bc601d20c14d4b514abecdebcf454baf322.tar.xz
libssh-79ed1bc601d20c14d4b514abecdebcf454baf322.zip
pki: Handle hash correctly.
Looks like only DSA in grypt needs a leading zero to mark the has as positive. See http://lists.gnupg.org/pipermail/gcrypt-devel/2005-February/000754.html
Diffstat (limited to 'include/libssh')
-rw-r--r--include/libssh/pki_priv.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/libssh/pki_priv.h b/include/libssh/pki_priv.h
index b6d312b9..f90d7c86 100644
--- a/include/libssh/pki_priv.h
+++ b/include/libssh/pki_priv.h
@@ -59,12 +59,13 @@ int pki_signature_verify(ssh_session session,
const ssh_signature sig,
const ssh_key key,
const unsigned char *hash,
- size_t len);
+ size_t hlen);
/* SSH Signing Functions */
ssh_signature pki_do_sign(const ssh_key privkey,
const unsigned char *hash,
size_t hlen);
ssh_signature pki_do_sign_sessionid(const ssh_key key,
- const unsigned char *hash);
+ const unsigned char *hash,
+ size_t hlen);
#endif /* PKI_PRIV_H_ */