From ab22c97f9ba805482e200a7f43eb1c6c581adc26 Mon Sep 17 00:00:00 2001 From: Hans-Joerg Hoexer Date: Tue, 15 Jun 2004 15:53:14 +0000 Subject: also use MSG_AUTHENTICATED flag. ok ho@ --- sbin/isakmpd/ike_quick_mode.c | 5 ++++- sbin/isakmpd/isakmp_cfg.c | 5 ++++- 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; } -- cgit v1.2.3