diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2001-12-28 14:50:55 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2001-12-28 14:50:55 +0000 |
commit | 4e830a709244c3b3be467cad0930856464ec7ef5 (patch) | |
tree | 615724dd1cec2d64995374b0050b5dad698c1686 /usr.bin/ssh/kexdh.c | |
parent | cc4a031a6a5485bc088a7d543c64301eee1ecb0e (diff) |
packet_read* no longer return the packet length, since it's not used.
Diffstat (limited to 'usr.bin/ssh/kexdh.c')
-rw-r--r-- | usr.bin/ssh/kexdh.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/usr.bin/ssh/kexdh.c b/usr.bin/ssh/kexdh.c index 226b81bc94e..bc4700a2e38 100644 --- a/usr.bin/ssh/kexdh.c +++ b/usr.bin/ssh/kexdh.c @@ -23,7 +23,7 @@ */ #include "includes.h" -RCSID("$OpenBSD: kexdh.c,v 1.11 2001/12/28 13:57:33 markus Exp $"); +RCSID("$OpenBSD: kexdh.c,v 1.12 2001/12/28 14:50:54 markus Exp $"); #include <openssl/crypto.h> #include <openssl/bn.h> @@ -97,7 +97,6 @@ kexdh_client(Kex *kex) u_char *server_host_key_blob = NULL, *signature = NULL; u_char *kbuf, *hash; u_int klen, kout, slen, sbloblen; - int plen; /* generate and send 'e', client DH public key */ dh = dh_new_group1(); @@ -115,7 +114,7 @@ kexdh_client(Kex *kex) #endif debug("expecting SSH2_MSG_KEXDH_REPLY"); - packet_read_expect(&plen, SSH2_MSG_KEXDH_REPLY); + packet_read_expect(SSH2_MSG_KEXDH_REPLY); /* key, cert */ server_host_key_blob = packet_get_string(&sbloblen); @@ -201,14 +200,14 @@ kexdh_server(Kex *kex) Key *server_host_key; u_char *kbuf, *hash, *signature = NULL, *server_host_key_blob = NULL; u_int sbloblen, klen, kout; - int slen, plen; + int slen; /* generate server DH public key */ dh = dh_new_group1(); dh_gen_key(dh, kex->we_need * 8); debug("expecting SSH2_MSG_KEXDH_INIT"); - packet_read_expect(&plen, SSH2_MSG_KEXDH_INIT); + packet_read_expect(SSH2_MSG_KEXDH_INIT); if (kex->load_host_key == NULL) fatal("Cannot load hostkey"); |