diff options
author | 2001-05-30 11:14:42 +0000 | |
---|---|---|
committer | 2001-05-30 11:14:42 +0000 | |
commit | 84c70f3341a51357fbc2436d9d77189f595c0f65 (patch) | |
tree | a251a225ee931f14cd87f90e0f728a8aa307f5f8 | |
parent | Correctly free information attached to the policy. (diff) | |
download | wireguard-openbsd-84c70f3341a51357fbc2436d9d77189f595c0f65.tar.xz wireguard-openbsd-84c70f3341a51357fbc2436d9d77189f595c0f65.zip |
Keep track of remote authentication material (like public key) as well.
-rw-r--r-- | sys/netinet/ip_ipsp.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sys/netinet/ip_ipsp.h b/sys/netinet/ip_ipsp.h index 00e1c6b6e51..4834cbcf41b 100644 --- a/sys/netinet/ip_ipsp.h +++ b/sys/netinet/ip_ipsp.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ip_ipsp.h,v 1.94 2001/05/30 10:55:06 angelos Exp $ */ +/* $OpenBSD: ip_ipsp.h,v 1.95 2001/05/30 11:14:42 angelos Exp $ */ /* * The authors of this code are John Ioannidis (ji@tla.org), @@ -232,6 +232,13 @@ struct ipsec_policy #define IPSP_CRED_KEYNOTE 1 #define IPSP_CRED_X509 2 +/* Identity types */ +#define IPSP_IDENTITY_NONE 0 +#define IPSP_IDENTITY_PREFIX 1 +#define IPSP_IDENTITY_FQDN 2 +#define IPSP_IDENTITY_MBOX 3 +#define IPSP_IDENTITY_CONNECTION 4 + /* * For encapsulation routes are possible not only for the destination * address but also for the protocol, source and destination ports @@ -337,6 +344,7 @@ struct tdb /* tunnel descriptor block */ struct ipsec_ref *tdb_srcid; /* Source ID for this SA */ struct ipsec_ref *tdb_dstid; /* Destination ID for this SA */ struct ipsec_ref *tdb_local_auth; /* Local authentication material */ + struct ipsec_ref *tdb_remote_auth; /* Remote authentication material */ TAILQ_HEAD(tdb_inp_head_in, inpcb) tdb_inp_in; TAILQ_HEAD(tdb_inp_head_out, inpcb) tdb_inp_out; |