summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2014-12-29 16:06:33 +0100
committerAris Adamantiadis <aris@0xbadc0de.be>2014-12-29 16:06:33 +0100
commit3880a8ed80a4b1e2c052bd62f328bba2f869d5ae (patch)
tree991cefe889d1c313685cd4693b96b94de7e93af3 /include
parent0e969e0316fe6437898c31ca57a3d187e5ee59f1 (diff)
downloadlibssh-3880a8ed80a4b1e2c052bd62f328bba2f869d5ae.tar.gz
libssh-3880a8ed80a4b1e2c052bd62f328bba2f869d5ae.tar.xz
libssh-3880a8ed80a4b1e2c052bd62f328bba2f869d5ae.zip
Fix the dh.c build with libgcrypt
Fixes bug reported by gentoo at https://bugs.gentoo.org/show_bug.cgi?id=533424 The function was only used by EDCSA backend which are not supported by the libgcrypt code anyway.
Diffstat (limited to 'include')
-rw-r--r--include/libssh/dh.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libssh/dh.h b/include/libssh/dh.h
index f28b9169..89872e30 100644
--- a/include/libssh/dh.h
+++ b/include/libssh/dh.h
@@ -49,7 +49,9 @@ int hashbufin_add_cookie(ssh_session session, unsigned char *cookie);
int hashbufout_add_cookie(ssh_session session);
int generate_session_keys(ssh_session session);
bignum make_string_bn(ssh_string string);
+#ifdef HAVE_LIBCRYPTO
void make_string_bn_inplace(ssh_string string, bignum bnout);
+#endif /* HAVE_LIBCRYPTO */
ssh_string make_bignum_string(bignum num);
#endif /* DH_H_ */