summaryrefslogtreecommitdiff
path: root/sbin/isakmpd/ike_auth.c
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>2001-06-28 21:41:59 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>2001-06-28 21:41:59 +0000
commit332e5291ec2d1b50efabc37a669246745e918db6 (patch)
tree8d0889fd92054c7c7a4f83fa32e8e0165c600b26 /sbin/isakmpd/ike_auth.c
parent666dffa0926068890358b8e46d6533c01974d967 (diff)
Add some more debugging information wrt PRF generation.
Diffstat (limited to 'sbin/isakmpd/ike_auth.c')
-rw-r--r--sbin/isakmpd/ike_auth.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/sbin/isakmpd/ike_auth.c b/sbin/isakmpd/ike_auth.c
index 57aa61d90b0..6e95d4b6e22 100644
--- a/sbin/isakmpd/ike_auth.c
+++ b/sbin/isakmpd/ike_auth.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ike_auth.c,v 1.48 2001/06/11 10:50:09 itojun Exp $ */
+/* $OpenBSD: ike_auth.c,v 1.49 2001/06/28 21:41:58 angelos Exp $ */
/* $EOM: ike_auth.c,v 1.59 2000/11/21 00:21:31 angelos Exp $ */
/*
@@ -441,6 +441,12 @@ sig_gen_skeyid (struct exchange *exchange, size_t *sz)
memcpy (key, exchange->nonce_i, exchange->nonce_i_len);
memcpy (key + exchange->nonce_i_len, exchange->nonce_r,
exchange->nonce_r_len);
+
+ LOG_DBG((LOG_NEGOTIATION, 80, "sig_gen_skeyid: PRF type %d, hash %d",
+ ie->prf_type, ie->hash->type));
+ LOG_DBG_BUF((LOG_NEGOTIATION, 80, "sig_gen_skeyid: SKEYID initialized with:",
+ key, exchange->nonce_i_len + exchange->nonce_r_len));
+
prf = prf_alloc (ie->prf_type, ie->hash->type, key,
exchange->nonce_i_len + exchange->nonce_r_len);
free (key);
@@ -456,6 +462,11 @@ sig_gen_skeyid (struct exchange *exchange, size_t *sz)
return 0;
}
+ LOG_DBG((LOG_NEGOTIATION, 80, "sig_gen_skeyid: g^xy length %d",
+ ie->g_x_len));
+ LOG_DBG_BUF((LOG_NEGOTIATION, 80,
+ "sig_gen_skeyid: SKEYID fed with g^xy:", ie->g_xy, ie->g_x_len));
+
prf->Init (prf->prfctx);
prf->Update (prf->prfctx, ie->g_xy, ie->g_x_len);
prf->Final (skeyid, prf->prfctx);