summaryrefslogtreecommitdiff
path: root/sbin/isakmpd/policy.c
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2003-07-25 08:31:17 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2003-07-25 08:31:17 +0000
commitdb6552c22aa727c02722a933d4b6559aa8925dc1 (patch)
tree27fe851a0ac7d2db3c0844cd1f17fa503ffb7b56 /sbin/isakmpd/policy.c
parentb2551cf2ad028fd667c0fcdd58ce07cf0809aa28 (diff)
add sha2 support; ok ho@
Diffstat (limited to 'sbin/isakmpd/policy.c')
-rw-r--r--sbin/isakmpd/policy.c38
1 files changed, 37 insertions, 1 deletions
diff --git a/sbin/isakmpd/policy.c b/sbin/isakmpd/policy.c
index 505a606aa91..ddc856896c7 100644
--- a/sbin/isakmpd/policy.c
+++ b/sbin/isakmpd/policy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: policy.c,v 1.65 2003/06/10 16:41:29 deraadt Exp $ */
+/* $OpenBSD: policy.c,v 1.66 2003/07/25 08:31:16 markus Exp $ */
/* $EOM: policy.c,v 1.49 2000/10/24 13:33:39 niklas Exp $ */
/*
@@ -266,6 +266,18 @@ policy_callback (char *name)
ah_hash_alg = "ripemd";
break;
+ case IPSEC_AH_SHA2_256:
+ ah_auth_alg = "sha2-256";
+ break;
+
+ case IPSEC_AH_SHA2_384:
+ ah_auth_alg = "sha2-384";
+ break;
+
+ case IPSEC_AH_SHA2_512:
+ ah_auth_alg = "sha2-512";
+ break;
+
case IPSEC_AH_DES:
ah_hash_alg = "des";
break;
@@ -548,6 +560,18 @@ policy_callback (char *name)
ah_auth_alg = "hmac-ripemd";
break;
+ case IPSEC_AUTH_HMAC_SHA2_256:
+ ah_auth_alg = "hmac-sha2-256";
+ break;
+
+ case IPSEC_AUTH_HMAC_SHA2_384:
+ ah_auth_alg = "hmac-sha2-384";
+ break;
+
+ case IPSEC_AUTH_HMAC_SHA2_512:
+ ah_auth_alg = "hmac-sha2-512";
+ break;
+
case IPSEC_AUTH_DES_MAC:
ah_auth_alg = "des-mac";
break;
@@ -573,6 +597,18 @@ policy_callback (char *name)
esp_auth_alg = "hmac-ripemd";
break;
+ case IPSEC_AUTH_HMAC_SHA2_256:
+ esp_auth_alg = "hmac-sha2-256";
+ break;
+
+ case IPSEC_AUTH_HMAC_SHA2_384:
+ esp_auth_alg = "hmac-sha2-384";
+ break;
+
+ case IPSEC_AUTH_HMAC_SHA2_512:
+ esp_auth_alg = "hmac-sha2-512";
+ break;
+
case IPSEC_AUTH_DES_MAC:
esp_auth_alg = "des-mac";
break;