summaryrefslogtreecommitdiff
path: root/kexgexc.c
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@zip.com.au>2003-12-09 19:18:07 +1100
committerDarren Tucker <dtucker@zip.com.au>2003-12-09 19:18:07 +1100
commit564f19e2370d71129a85c3aa1130ab812c3ae3c8 (patch)
tree107575ea42ff2064753a842162580c2d15dcc094 /kexgexc.c
parent3175eb9a5a426f6e494d523fe6e96fcc426995c1 (diff)
- markus@cvs.openbsd.org 2003/12/08 11:00:47
[kexgexc.c] print requested group size in debug; ok djm
Diffstat (limited to 'kexgexc.c')
-rw-r--r--kexgexc.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/kexgexc.c b/kexgexc.c
index f14ac44c..0193183b 100644
--- a/kexgexc.c
+++ b/kexgexc.c
@@ -24,7 +24,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: kexgexc.c,v 1.1 2003/02/16 17:09:57 markus Exp $");
+RCSID("$OpenBSD: kexgexc.c,v 1.2 2003/12/08 11:00:47 markus Exp $");
#include "xmalloc.h"
#include "key.h"
@@ -49,16 +49,14 @@ kexgex_client(Kex *kex)
nbits = dh_estimate(kex->we_need * 8);
if (datafellows & SSH_OLD_DHGEX) {
- debug("SSH2_MSG_KEX_DH_GEX_REQUEST_OLD sent");
-
/* Old GEX request */
packet_start(SSH2_MSG_KEX_DH_GEX_REQUEST_OLD);
packet_put_int(nbits);
min = DH_GRP_MIN;
max = DH_GRP_MAX;
- } else {
- debug("SSH2_MSG_KEX_DH_GEX_REQUEST sent");
+ debug("SSH2_MSG_KEX_DH_GEX_REQUEST_OLD(%u) sent", nbits);
+ } else {
/* New GEX request */
min = DH_GRP_MIN;
max = DH_GRP_MAX;
@@ -66,6 +64,9 @@ kexgex_client(Kex *kex)
packet_put_int(min);
packet_put_int(nbits);
packet_put_int(max);
+
+ debug("SSH2_MSG_KEX_DH_GEX_REQUEST(%u<%u<%u) sent",
+ min, nbits, max);
}
#ifdef DEBUG_KEXDH
fprintf(stderr, "\nmin = %d, nbits = %d, max = %d\n",