From f84ebc2e2770b16b43c62ecb67cf8d4bd1b99d72 Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Wed, 23 Sep 2009 23:51:04 +0200 Subject: Moved lots of declaration out of priv.h --- libssh/dh.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'libssh/dh.c') diff --git a/libssh/dh.c b/libssh/dh.c index 3290e0bb..c1845d78 100644 --- a/libssh/dh.c +++ b/libssh/dh.c @@ -50,7 +50,10 @@ #include "libssh/priv.h" #include "libssh/crypto.h" - +#include "libssh/buffer.h" +#include "libssh/session.h" +/* todo: remove it */ +#include "libssh/string.h" #ifdef HAVE_LIBCRYPTO #include #include @@ -340,7 +343,7 @@ ssh_string make_bignum_string(bignum num) { #ifdef DEBUG_CRYPTO fprintf(stderr, "%d bits, %d bytes, %d padding\n", bits, len, pad); #endif /* DEBUG_CRYPTO */ - +/* TODO: fix that crap !! */ ptr = malloc(4 + len + pad); if (ptr == NULL) { return NULL; -- cgit