summaryrefslogtreecommitdiff
path: root/sys/net/pfkeyv2_parsemessage.c
diff options
context:
space:
mode:
authorAngelos D. Keromytis <angelos@cvs.openbsd.org>2001-05-30 11:27:35 +0000
committerAngelos D. Keromytis <angelos@cvs.openbsd.org>2001-05-30 11:27:35 +0000
commitbcb2f5d31ec7ac7867241d34de691663bf8266b2 (patch)
tree62582ae060b567bdc98d0eac3bde6f3085e19fc3 /sys/net/pfkeyv2_parsemessage.c
parent7396efed36e04f00520521aec51864fa6674dec8 (diff)
Import/export authentication information for SA.
Diffstat (limited to 'sys/net/pfkeyv2_parsemessage.c')
-rw-r--r--sys/net/pfkeyv2_parsemessage.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/net/pfkeyv2_parsemessage.c b/sys/net/pfkeyv2_parsemessage.c
index 88085515928..6cb22bff990 100644
--- a/sys/net/pfkeyv2_parsemessage.c
+++ b/sys/net/pfkeyv2_parsemessage.c
@@ -63,7 +63,8 @@ you didn't get a copy, you may request one from <license@inner.net>.
#define BITMAP_X_LOCAL_CREDENTIALS (1 << SADB_X_EXT_LOCAL_CREDENTIALS)
#define BITMAP_X_REMOTE_CREDENTIALS (1 << SADB_X_EXT_REMOTE_CREDENTIALS)
#define BITMAP_X_LOCAL_AUTH (1 << SADB_X_EXT_LOCAL_AUTH)
-#define BITMAP_X_CREDENTIALS (BITMAP_X_LOCAL_CREDENTIALS | BITMAP_X_REMOTE_CREDENTIALS | BITMAP_X_LOCAL_AUTH)
+#define BITMAP_X_REMOTE_AUTH (1 << SADB_X_EXT_REMOTE_AUTH)
+#define BITMAP_X_CREDENTIALS (BITMAP_X_LOCAL_CREDENTIALS | BITMAP_X_REMOTE_CREDENTIALS | BITMAP_X_LOCAL_AUTH | BITMAP_X_REMOTE_AUTH)
#define BITMAP_X_FLOW (BITMAP_X_SRC_MASK | BITMAP_X_DST_MASK | BITMAP_X_PROTOCOL | BITMAP_X_SRC_FLOW | BITMAP_X_DST_FLOW)
uint32_t sadb_exts_allowed_in[SADB_MAX+1] =
@@ -420,6 +421,7 @@ pfkeyv2_parsemessage(void *p, int len, void **headers)
}
break;
case SADB_X_EXT_LOCAL_AUTH:
+ case SADB_X_EXT_REMOTE_AUTH:
{
struct sadb_cred *sadb_cred = (struct sadb_cred *)p;