aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2018-10-27 23:54:56 +0200
committerAndreas Schneider <asn@cryptomilk.org>2019-01-24 09:34:18 +0100
commit43a4f86b6e14a907b3a298d10d5cd7efb59f6a09 (patch)
treeef166a4dbdd80362fcb4142dae1a02275e126265 /include
parente42a423a247c8c9f0bd58d32a8b80c522f7b43f6 (diff)
downloadlibssh-43a4f86b6e14a907b3a298d10d5cd7efb59f6a09.tar.gz
libssh-43a4f86b6e14a907b3a298d10d5cd7efb59f6a09.tar.xz
libssh-43a4f86b6e14a907b3a298d10d5cd7efb59f6a09.zip
dh: move unrelated functions out of dh.c
Signed-off-by: Aris Adamantiadis <aris@0xbadc0de.be> Reviewed-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'include')
-rw-r--r--include/libssh/dh.h6
-rw-r--r--include/libssh/kex.h5
2 files changed, 5 insertions, 6 deletions
diff --git a/include/libssh/dh.h b/include/libssh/dh.h
index 3d7312c5..adc8c48f 100644
--- a/include/libssh/dh.h
+++ b/include/libssh/dh.h
@@ -51,12 +51,6 @@ ssh_key ssh_dh_get_next_server_publickey(ssh_session session);
int ssh_dh_get_next_server_publickey_blob(ssh_session session,
ssh_string *pubkey_blob);
-int ssh_make_sessionid(ssh_session session);
-/* add data for the final cookie */
-int ssh_hashbufin_add_cookie(ssh_session session, unsigned char *cookie);
-int ssh_hashbufout_add_cookie(ssh_session session);
-int ssh_generate_session_keys(ssh_session session);
-
#ifdef WITH_SERVER
void ssh_server_dh_init(ssh_session session);
#endif /* WITH_SERVER */
diff --git a/include/libssh/kex.h b/include/libssh/kex.h
index 644a3956..19a67c81 100644
--- a/include/libssh/kex.h
+++ b/include/libssh/kex.h
@@ -48,5 +48,10 @@ const char *ssh_kex_get_description(uint32_t algo);
char *ssh_client_select_hostkeys(ssh_session session);
int ssh_send_rekex(ssh_session session);
int server_set_kex(ssh_session session);
+int ssh_make_sessionid(ssh_session session);
+/* add data for the final cookie */
+int ssh_hashbufin_add_cookie(ssh_session session, unsigned char *cookie);
+int ssh_hashbufout_add_cookie(ssh_session session);
+int ssh_generate_session_keys(ssh_session session);
#endif /* KEX_H_ */