summaryrefslogtreecommitdiff
path: root/kexdh.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2002-01-22 23:14:44 +1100
committerDamien Miller <djm@mindrot.org>2002-01-22 23:14:44 +1100
commitd432ccf7403b725fce590818a85804625b7cad20 (patch)
tree68adfe68b2af47841282cf1898ef94ca36ac26c0 /kexdh.c
parent29f75f5c25b9645227fe851c46f54bc83c91a0af (diff)
- markus@cvs.openbsd.org 2001/12/28 13:57:33
[auth1.c kexdh.c kexgex.c packet.c packet.h sshconnect1.c sshd.c] packet_get_bignum* no longer returns a size
Diffstat (limited to 'kexdh.c')
-rw-r--r--kexdh.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/kexdh.c b/kexdh.c
index 43a14f55..226b81bc 100644
--- a/kexdh.c
+++ b/kexdh.c
@@ -23,7 +23,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: kexdh.c,v 1.10 2001/12/28 12:14:27 markus Exp $");
+RCSID("$OpenBSD: kexdh.c,v 1.11 2001/12/28 13:57:33 markus Exp $");
#include <openssl/crypto.h>
#include <openssl/bn.h>
@@ -97,7 +97,7 @@ kexdh_client(Kex *kex)
u_char *server_host_key_blob = NULL, *signature = NULL;
u_char *kbuf, *hash;
u_int klen, kout, slen, sbloblen;
- int dlen, plen;
+ int plen;
/* generate and send 'e', client DH public key */
dh = dh_new_group1();
@@ -131,7 +131,7 @@ kexdh_client(Kex *kex)
/* DH paramter f, server public DH key */
if ((dh_server_pub = BN_new()) == NULL)
fatal("dh_server_pub == NULL");
- packet_get_bignum2(dh_server_pub, &dlen);
+ packet_get_bignum2(dh_server_pub);
#ifdef DEBUG_KEXDH
fprintf(stderr, "dh_server_pub= ");
@@ -201,7 +201,7 @@ 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 dlen, slen, plen;
+ int slen, plen;
/* generate server DH public key */
dh = dh_new_group1();
@@ -219,7 +219,7 @@ kexdh_server(Kex *kex)
/* key, cert */
if ((dh_client_pub = BN_new()) == NULL)
fatal("dh_client_pub == NULL");
- packet_get_bignum2(dh_client_pub, &dlen);
+ packet_get_bignum2(dh_client_pub);
#ifdef DEBUG_KEXDH
fprintf(stderr, "dh_client_pub= ");