aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libssh/dh.h2
-rw-r--r--include/libssh/pki.h2
-rw-r--r--include/libssh/priv.h1
-rw-r--r--include/libssh/wrapper.h1
4 files changed, 4 insertions, 2 deletions
diff --git a/include/libssh/dh.h b/include/libssh/dh.h
index c82cba79..fcdaaf46 100644
--- a/include/libssh/dh.h
+++ b/include/libssh/dh.h
@@ -24,6 +24,8 @@
#include "config.h"
+#include "libssh/crypto.h"
+
void ssh_print_bignum(const char *which,bignum num);
int dh_generate_e(ssh_session session);
int dh_generate_f(ssh_session session);
diff --git a/include/libssh/pki.h b/include/libssh/pki.h
index d4cc8503..ad8bdb0e 100644
--- a/include/libssh/pki.h
+++ b/include/libssh/pki.h
@@ -22,6 +22,8 @@
#ifndef PKI_H_
#define PKI_H_
+#include "libssh/crypto.h"
+
#define SSH_KEY_FLAG_EMPTY 0x0
#define SSH_KEY_FLAG_PUBLIC 0x0001
#define SSH_KEY_FLAG_PRIVATE 0x0002
diff --git a/include/libssh/priv.h b/include/libssh/priv.h
index 6d8eeb43..522f56bf 100644
--- a/include/libssh/priv.h
+++ b/include/libssh/priv.h
@@ -105,7 +105,6 @@ int gettimeofday(struct timeval *__p, void *__t);
#include "libssh/libssh.h"
#include "libssh/callbacks.h"
-#include "libssh/crypto.h"
/* some constants */
#define MAX_PACKET_LEN 262144
diff --git a/include/libssh/wrapper.h b/include/libssh/wrapper.h
index 7fe6f8ad..c08ab22a 100644
--- a/include/libssh/wrapper.h
+++ b/include/libssh/wrapper.h
@@ -25,7 +25,6 @@
#include "config.h"
#include "libssh/libcrypto.h"
#include "libssh/libgcrypt.h"
-#include "libssh/crypto.h"
enum ssh_mac_e {
SSH_MAC_SHA1=1,