added Cisco Unity ModeCfg attributes

This commit is contained in:
Andreas Steffen
2007-01-21 08:45:10 +00:00
parent 365e838687
commit 4af33bd7a2
3 changed files with 48 additions and 3 deletions
+20 -3
View File
@@ -708,7 +708,7 @@ static const char *const xauth_type_name[] = {
};
enum_names xauth_type_names =
{ XAUTH_TYPE_GENERIC, XAUTH_TYPE_SKEY, xauth_type_name, NULL};
{ XAUTH_TYPE_GENERIC, XAUTH_TYPE_SKEY, xauth_type_name, NULL};
/* From draft-beaulieu-ike-xauth */
static const char *const xauth_attr_tv_name[] = {
@@ -726,6 +726,24 @@ enum_names xauth_attr_tv_names = {
XAUTH_TYPE + ISAKMP_ATTR_AF_TV,
XAUTH_STATUS + ISAKMP_ATTR_AF_TV, xauth_attr_tv_name, NULL };
static const char *const unity_attr_name[] = {
"UNITY_BANNER",
"UNITY_SAVE_PASSWD",
"UNITY_DEF_DOMAIN",
"UNITY_SPLITDNS_NAME",
"UNITY_SPLIT_INCLUDE",
"UNITY_NATT_PORT",
"UNITY_LOCAL_LAN",
"UNITY_PFS",
"UNITY_FW_TYPE",
"UNITY_BACKUP_SERVERS",
"UNITY_DDNS_HOSTNAME",
};
enum_names unity_attr_names =
{ UNITY_BANNER , UNITY_DDNS_HOSTNAME, unity_attr_name , &xauth_attr_tv_names };
static const char *const xauth_attr_name[] = {
"XAUTH_USER_NAME",
"XAUTH_USER_PASSWORD",
@@ -739,7 +757,7 @@ static const char *const xauth_attr_name[] = {
};
enum_names xauth_attr_names =
{ XAUTH_USER_NAME , XAUTH_ANSWER, xauth_attr_name , &xauth_attr_tv_names };
{ XAUTH_USER_NAME , XAUTH_ANSWER, xauth_attr_name , &unity_attr_names };
static const char *const modecfg_attr_name[] = {
"INTERNAL_IP4_ADDRESS",
@@ -757,7 +775,6 @@ static const char *const modecfg_attr_name[] = {
"INTERNAL_IP4_SUBNET",
"SUPPORTED_ATTRIBUTES",
"INTERNAL_IP6_SUBNET",
NULL
};
enum_names modecfg_attr_names =
+24
View File
@@ -1,3 +1,4 @@
/* manifest constants
* Copyright (C) 1997 Angelos D. Keromytis.
* Copyright (C) 1998-2002 D. Hugh Redelmeier.
@@ -666,6 +667,7 @@ extern enum_names attr_msg_type_names;
#define MODECFG_ROOF 16
extern enum_names modecfg_attr_names;
/* XAUTH attribute values */
#define XAUTH_TYPE 16520
#define XAUTH_USER_NAME 16521
@@ -679,15 +681,37 @@ extern enum_names modecfg_attr_names;
#define XAUTH_ANSWER 16529
#define XAUTH_BASE XAUTH_TYPE
#define XAUTH_ROOF 16530
extern enum_names xauth_attr_names;
/* ISAKMP mode config attributes specific to the Unity vendor Id */
#define UNITY_BANNER 28672
#define UNITY_SAVE_PASSWD 28673
#define UNITY_DEF_DOMAIN 28674
#define UNITY_SPLITDNS_NAME 28675
#define UNITY_SPLIT_INCLUDE 28676
#define UNITY_NATT_PORT 28677
#define UNITY_LOCAL_LAN 28678
#define UNITY_PFS 28679
#define UNITY_FW_TYPE 28680
#define UNITY_BACKUP_SERVERS 28681
#define UNITY_DDNS_HOSTNAME 28682
#define UNITY_BASE UNITY_BANNER
extern enum_names unity_attr_names;
/* XAUTH authentication types */
#define XAUTH_TYPE_GENERIC 0
#define XAUTH_TYPE_CHAP 1
#define XAUTH_TYPE_OTP 2
#define XAUTH_TYPE_SKEY 3
/* Values for XAUTH_STATUS */
#define XAUTH_STATUS_FAIL 0
#define XAUTH_STATUS_OK 1
extern enum_names xauth_type_names;
/* Exchange types
+4
View File
@@ -357,6 +357,10 @@ modecfg_build_msg(struct state *st, pb_stream *rbody
{
attr_type = XAUTH_BASE;
}
else if (attr_type == XAUTH_ROOF)
{
attr_type = UNITY_BASE;
}
attr_set >>= 1;
}
}