aboutsummaryrefslogtreecommitdiff
path: root/libssh/keys.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2008-06-17 01:06:53 +0000
committerAris Adamantiadis <aris@0xbadc0de.be>2008-06-17 01:06:53 +0000
commitff515b55282a62cb7c39d7c72d48fa8e1d2b11e4 (patch)
tree68217f3e805c54cd9d4c8c6f6922e61b40f32346 /libssh/keys.c
parent507ea1e90f7561c0c3c835d004bacb1b66ee3eeb (diff)
downloadlibssh-ff515b55282a62cb7c39d7c72d48fa8e1d2b11e4.tar.gz
libssh-ff515b55282a62cb7c39d7c72d48fa8e1d2b11e4.tar.xz
libssh-ff515b55282a62cb7c39d7c72d48fa8e1d2b11e4.zip
gcrypt + SSH1 bug resolved
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@174 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'libssh/keys.c')
-rw-r--r--libssh/keys.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libssh/keys.c b/libssh/keys.c
index 18d0b372..a40b0df3 100644
--- a/libssh/keys.c
+++ b/libssh/keys.c
@@ -69,7 +69,7 @@ PUBLIC_KEY *publickey_make_dss(SSH_SESSION *session, BUFFER *buffer){
return NULL;
}
#ifdef HAVE_LIBGCRYPT
- gcry_sexp_build(&key->dsa_pub,session,"(public-key(dsa(p %b)(q %b)(g %b)(y %b)))",string_len(p),p->string,string_len(q),q->string,string_len(g),g->string,string_len(pubkey),pubkey->string);
+ gcry_sexp_build(&key->dsa_pub,NULL,"(public-key(dsa(p %b)(q %b)(g %b)(y %b)))",string_len(p),p->string,string_len(q),q->string,string_len(g),g->string,string_len(pubkey),pubkey->string);
#elif defined HAVE_LIBCRYPTO
key->dsa_pub=DSA_new();
key->dsa_pub->p=make_string_bn(p);