diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-07-24 22:02:32 +0200 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-07-24 22:02:32 +0200 |
commit | fc5dd23afa3b71d1020065be61842964852f3482 (patch) | |
tree | ab1198445624cae190ebb8c3809d8000786cbc54 /libssh/kex.c | |
parent | 91d0660cc3b0f72b690678862bb21cbe0328a186 (diff) | |
download | libssh-fc5dd23afa3b71d1020065be61842964852f3482.tar.gz libssh-fc5dd23afa3b71d1020065be61842964852f3482.tar.xz libssh-fc5dd23afa3b71d1020065be61842964852f3482.zip |
Changed all PUBLIC_KEY * to ssh_public_key
Diffstat (limited to 'libssh/kex.c')
-rw-r--r-- | libssh/kex.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libssh/kex.c b/libssh/kex.c index ae9c9a5a..887fc5c5 100644 --- a/libssh/kex.c +++ b/libssh/kex.c @@ -500,7 +500,7 @@ static int build_session_id1(SSH_SESSION *session, ssh_string servern, } /* returns 1 if the modulus of k1 is < than the one of k2 */ -static int modulus_smaller(PUBLIC_KEY *k1, PUBLIC_KEY *k2){ +static int modulus_smaller(ssh_public_key k1, ssh_public_key k2){ bignum n1; bignum n2; int res; @@ -529,8 +529,8 @@ static int modulus_smaller(PUBLIC_KEY *k1, PUBLIC_KEY *k2){ } #define ABS(A) ( (A)<0 ? -(A):(A) ) -static ssh_string encrypt_session_key(SSH_SESSION *session, PUBLIC_KEY *srvkey, - PUBLIC_KEY *hostkey, int slen, int hlen) { +static ssh_string encrypt_session_key(SSH_SESSION *session, ssh_public_key srvkey, + ssh_public_key hostkey, int slen, int hlen) { unsigned char buffer[32] = {0}; int i; ssh_string data1 = NULL; @@ -614,8 +614,8 @@ int ssh_get_kex1(SSH_SESSION *session) { ssh_string serverkey = NULL; ssh_string hostkey = NULL; ssh_string enc_session = NULL; - PUBLIC_KEY *srv = NULL; - PUBLIC_KEY *host = NULL; + ssh_public_key srv = NULL; + ssh_public_key host = NULL; u32 server_bits; u32 host_bits; u32 protocol_flags; |