diff options
author | Christian Weisgerber <naddy@cvs.openbsd.org> | 2006-06-09 21:37:18 +0000 |
---|---|---|
committer | Christian Weisgerber <naddy@cvs.openbsd.org> | 2006-06-09 21:37:18 +0000 |
commit | e3c075937c11d978008750db684d8c8a873a71bd (patch) | |
tree | 33ad5a62d199054a4ef8d054c697e6858c8c6be0 | |
parent | 9159470774eb6a166fadfff85e0862de5f03b158 (diff) |
Allow for AH the use of the authentication algorithms added a while ago.
Fix the indentation while we're here. ok hshoexer@
-rw-r--r-- | sbin/isakmpd/ipsec.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/sbin/isakmpd/ipsec.c b/sbin/isakmpd/ipsec.c index d04e87e7a25..793be46c94f 100644 --- a/sbin/isakmpd/ipsec.c +++ b/sbin/isakmpd/ipsec.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ipsec.c,v 1.124 2006/05/29 06:56:36 mcbride Exp $ */ +/* $OpenBSD: ipsec.c,v 1.125 2006/06/09 21:37:17 naddy Exp $ */ /* $EOM: ipsec.c,v 1.143 2000/12/11 23:57:42 niklas Exp $ */ /* @@ -864,17 +864,17 @@ static int ipsec_validate_transform_id(u_int8_t proto, u_int8_t transform_id) { switch (proto) { - /* - * As no unexpected protocols can occur, we just tie the - * default case to the first case, in orer to silence a GCC - * warning. - */ - default: - case ISAKMP_PROTO_ISAKMP: - return transform_id != IPSEC_TRANSFORM_KEY_IKE; - case IPSEC_PROTO_IPSEC_AH: - return transform_id < IPSEC_AH_MD5 || - transform_id > IPSEC_AH_DES ? -1 : 0; + /* + * As no unexpected protocols can occur, we just tie the + * default case to the first case, in order to silence a GCC + * warning. + */ + default: + case ISAKMP_PROTO_ISAKMP: + return transform_id != IPSEC_TRANSFORM_KEY_IKE; + case IPSEC_PROTO_IPSEC_AH: + return transform_id < IPSEC_AH_MD5 || + transform_id > IPSEC_AH_RIPEMD ? -1 : 0; case IPSEC_PROTO_IPSEC_ESP: return transform_id < IPSEC_ESP_DES_IV64 || (transform_id > IPSEC_ESP_AES_128_CTR && |