diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2010-06-14 11:33:56 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2010-06-14 11:33:56 +0000 |
commit | c85961103b5258cf63dabc3cc217afc966353660 (patch) | |
tree | ae5090f701eaac3ab381db288be7d4216ac43c16 /sbin/iked/iked.h | |
parent | 825ac1c1726f39a4efe4221044ae718b0b17d399 (diff) |
restructure code a bit to move closer to initiator mode:
- split responder/initiator- specific code into different functions and use
shared functions for common stuff.
- first parse the received message and store information in the temporary
message struct instead of modifying the ike sa in the parsing code directly.
Diffstat (limited to 'sbin/iked/iked.h')
-rw-r--r-- | sbin/iked/iked.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sbin/iked/iked.h b/sbin/iked/iked.h index 0a10a159270..19761e2b2a5 100644 --- a/sbin/iked/iked.h +++ b/sbin/iked/iked.h @@ -1,4 +1,4 @@ -/* $OpenBSD: iked.h,v 1.7 2010/06/14 08:55:59 reyk Exp $ */ +/* $OpenBSD: iked.h,v 1.8 2010/06/14 11:33:55 reyk Exp $ */ /* $vantronix: iked.h,v 1.61 2010/06/03 07:57:33 reyk Exp $ */ /* @@ -380,6 +380,8 @@ struct iked_message { /* Parsed information */ struct iked_proposals msg_proposals; struct iked_spi msg_rekey; + struct ibuf *msg_nonce; /* dh NONCE */ + struct ibuf *msg_ke; /* dh key exchange */ /* Parse stack */ struct iked_proposal *msg_prop; @@ -579,6 +581,7 @@ pid_t ikev2(struct iked *, struct iked_proc *); void ikev2_recv(struct iked *, struct iked_message *); int ikev2_sa_negotiate(struct iked_sa *, struct iked_proposals *, struct iked_proposals *, u_int8_t); +int ikev2_policy2id(struct iked_static_id *, struct iked_id *, int); int ikev2_childsa_delete(struct iked *, struct iked_sa *, u_int8_t, u_int64_t, u_int64_t *, int); struct ibuf * |