aboutsummaryrefslogtreecommitdiff
path: root/libssh/wrapper.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2009-09-23 21:55:54 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2009-09-23 21:55:54 +0200
commit9a8d4cd0fdd18127065cacbc11296933669ea9ca (patch)
treecccf507167e28aa5038cea357d1f220668a4e937 /libssh/wrapper.c
parentffed8b03bb6e170abbd9564547ba439302840618 (diff)
downloadlibssh-9a8d4cd0fdd18127065cacbc11296933669ea9ca.tar.gz
libssh-9a8d4cd0fdd18127065cacbc11296933669ea9ca.tar.xz
libssh-9a8d4cd0fdd18127065cacbc11296933669ea9ca.zip
get rid of SSH_SESSION
Diffstat (limited to 'libssh/wrapper.c')
-rw-r--r--libssh/wrapper.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libssh/wrapper.c b/libssh/wrapper.c
index 99815497..4110c4ec 100644
--- a/libssh/wrapper.c
+++ b/libssh/wrapper.c
@@ -803,7 +803,7 @@ void crypto_free(CRYPTO *crypto){
SAFE_FREE(crypto);
}
-static int crypt_set_algorithms2(SSH_SESSION *session){
+static int crypt_set_algorithms2(ssh_session session){
const char *wanted;
int i = 0;
@@ -860,7 +860,7 @@ static int crypt_set_algorithms2(SSH_SESSION *session){
return SSH_OK;
}
-static int crypt_set_algorithms1(SSH_SESSION *session) {
+static int crypt_set_algorithms1(ssh_session session) {
int i = 0;
/* right now, we force 3des-cbc to be taken */
@@ -889,13 +889,13 @@ static int crypt_set_algorithms1(SSH_SESSION *session) {
return SSH_OK;
}
-int crypt_set_algorithms(SSH_SESSION *session) {
+int crypt_set_algorithms(ssh_session session) {
return (session->version == 1) ? crypt_set_algorithms1(session) :
crypt_set_algorithms2(session);
}
// TODO Obviously too much cut and paste here
-int crypt_set_algorithms_server(SSH_SESSION *session){
+int crypt_set_algorithms_server(ssh_session session){
char *server = NULL;
char *client = NULL;
char *match = NULL;