summaryrefslogtreecommitdiff
path: root/sbin/isakmpd
diff options
context:
space:
mode:
authorHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2004-06-15 15:53:14 +0000
committerHans-Joerg Hoexer <hshoexer@cvs.openbsd.org>2004-06-15 15:53:14 +0000
commitab22c97f9ba805482e200a7f43eb1c6c581adc26 (patch)
treef68e0c448f3217d2cc9cc5c0d7cacdfe399c8b63 /sbin/isakmpd
parent282daa5a99cca665f697d729530bd5402760ef84 (diff)
also use MSG_AUTHENTICATED flag.
ok ho@
Diffstat (limited to 'sbin/isakmpd')
-rw-r--r--sbin/isakmpd/ike_quick_mode.c5
-rw-r--r--sbin/isakmpd/isakmp_cfg.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/sbin/isakmpd/ike_quick_mode.c b/sbin/isakmpd/ike_quick_mode.c
index 4a2e24b9aed..affadfc8b21 100644
--- a/sbin/isakmpd/ike_quick_mode.c
+++ b/sbin/isakmpd/ike_quick_mode.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ike_quick_mode.c,v 1.81 2004/06/14 09:55:41 ho Exp $ */
+/* $OpenBSD: ike_quick_mode.c,v 1.82 2004/06/15 15:53:13 hshoexer Exp $ */
/* $EOM: ike_quick_mode.c,v 1.139 2001/01/26 10:43:17 niklas Exp $ */
/*
@@ -1078,6 +1078,9 @@ initiator_recv_HASH_SA_NONCE(struct message *msg)
/* Mark the HASH as handled. */
hashp->flags |= PL_MARK;
+ /* Mark message as authenticated. */
+ msg->flags |= MSG_AUTHENTICATED;
+
/*
* As we are getting an answer on our transform offer, only one
* transform should be given.
diff --git a/sbin/isakmpd/isakmp_cfg.c b/sbin/isakmpd/isakmp_cfg.c
index 327b007291f..f7b4e2a11bf 100644
--- a/sbin/isakmpd/isakmp_cfg.c
+++ b/sbin/isakmpd/isakmp_cfg.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: isakmp_cfg.c,v 1.31 2004/06/14 09:55:41 ho Exp $ */
+/* $OpenBSD: isakmp_cfg.c,v 1.32 2004/06/15 15:53:13 hshoexer Exp $ */
/*
* Copyright (c) 2001 Niklas Hallqvist. All rights reserved.
@@ -685,6 +685,9 @@ cfg_verify_hash(struct message *msg)
/* Mark the HASH as handled. */
hashp->flags |= PL_MARK;
+ /* Mark message authenticated. */
+ msg->flags |= MSG_AUTHENTICATED;
+
return 0;
}