From 5e0fd851952f91bc232095378edc002e062b906f Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Tue, 27 Apr 2004 22:06:55 +0000 Subject: parser parts for ipsec ike, markus ok --- usr.sbin/bgpd/bgpd.h | 38 +++++++++++++++++++++++--------------- 1 file changed, 23 insertions(+), 15 deletions(-) (limited to 'usr.sbin/bgpd/bgpd.h') diff --git a/usr.sbin/bgpd/bgpd.h b/usr.sbin/bgpd/bgpd.h index b235e8dc77c..5dd0b7547ea 100644 --- a/usr.sbin/bgpd/bgpd.h +++ b/usr.sbin/bgpd/bgpd.h @@ -1,4 +1,4 @@ -/* $OpenBSD: bgpd.h,v 1.112 2004/04/27 03:53:42 henning Exp $ */ +/* $OpenBSD: bgpd.h,v 1.113 2004/04/27 22:06:54 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer @@ -146,21 +146,29 @@ struct filter_set { u_int8_t prepend; }; +enum auth_method { + MD5SIG = 1, + IPSEC_MANUAL_ESP, + IPSEC_MANUAL_AH, + IPSEC_IKE +}; + struct peer_ipsec { - u_int32_t spi_in; - u_int32_t spi_out; - u_int8_t auth_alg_in; - u_int8_t auth_alg_out; - char auth_key_in[IPSEC_AUTH_KEY_LEN]; - char auth_key_out[IPSEC_AUTH_KEY_LEN]; - u_int8_t auth_keylen_in; - u_int8_t auth_keylen_out; - u_int8_t enc_alg_in; - u_int8_t enc_alg_out; - char enc_key_in[IPSEC_ENC_KEY_LEN]; - char enc_key_out[IPSEC_ENC_KEY_LEN]; - u_int8_t enc_keylen_in; - u_int8_t enc_keylen_out; + enum auth_method method; + u_int32_t spi_in; + u_int32_t spi_out; + u_int8_t auth_alg_in; + u_int8_t auth_alg_out; + char auth_key_in[IPSEC_AUTH_KEY_LEN]; + char auth_key_out[IPSEC_AUTH_KEY_LEN]; + u_int8_t auth_keylen_in; + u_int8_t auth_keylen_out; + u_int8_t enc_alg_in; + u_int8_t enc_alg_out; + char enc_key_in[IPSEC_ENC_KEY_LEN]; + char enc_key_out[IPSEC_ENC_KEY_LEN]; + u_int8_t enc_keylen_in; + u_int8_t enc_keylen_out; }; struct peer_config { -- cgit v1.2.3