}; #define DEC_MD5_VID_D(id, str, descr) \ { id, VID_MD5HASH, str, descr, NULL, 0 } #define DEC_MD5_VID(id, str) \ { id, VID_MD5HASH, str, NULL, NULL, 0 } #define DEC_FSWAN_VID(id, str, descr) \ { id, VID_FSWAN_HASH, str, descr, NULL, 0 } static struct vid_struct vid_tab[] = { /* Implementation names */ { VID_OPENPGP, VID_STRING, "OpenPGP10171", "OpenPGP", NULL, 0 }, DEC_MD5_VID(VID_KAME_RACOON, "KAME/racoon"), { VID_MS_NT5, VID_MD5HASH | VID_SUBSTRING_DUMPHEXA, "MS NT5 ISAKMPOAKLEY", NULL, NULL, 0 }, /* http://msdn.microsoft.com/en-us/library/cc233476%28v=prot.10%29.aspx Windows 2000 00 00 00 02 Windows XP 00 00 00 03 Windows Server 2003 00 00 00 04 Windows Vista 00 00 00 05 Windows Server 2008 00 00 00 06 Windows 7 00 00 00 07 Windows Server 2008 R2 00 00 00 08 */ /* These two VID's plus VID_MS_NT5 trigger GSS-API support */
const char *vid; unsigned int vid_len; }; #define DEC_MD5_VID_D(id,str,descr) \ { VID_##id, VID_MD5HASH, str, descr, NULL, 0 }, #define DEC_MD5_VID(id,str) \ { VID_##id, VID_MD5HASH, str, NULL, NULL, 0 }, static struct vid_struct _vid_tab[] = { /* Implementation names */ /* NAT-Traversal */ DEC_MD5_VID(NATT_STENBERG_01, "draft-stenberg-ipsec-nat-traversal-01") DEC_MD5_VID(NATT_STENBERG_02, "draft-stenberg-ipsec-nat-traversal-02") DEC_MD5_VID(NATT_HUTTUNEN, "ESPThruNAT") DEC_MD5_VID(NATT_HUTTUNEN_ESPINUDP, "draft-huttunen-ipsec-esp-in-udp-00.txt") DEC_MD5_VID(NATT_IETF_00, "draft-ietf-ipsec-nat-t-ike-00") DEC_MD5_VID(NATT_IETF_02, "draft-ietf-ipsec-nat-t-ike-02") /* hash in draft-ietf-ipsec-nat-t-ike-02 contains '\n'... Accept both */ DEC_MD5_VID_D(NATT_IETF_02_N, "draft-ietf-ipsec-nat-t-ike-02\n", "draft-ietf-ipsec-nat-t-ike-02_n") DEC_MD5_VID(NATT_IETF_03, "draft-ietf-ipsec-nat-t-ike-03") DEC_MD5_VID(NATT_RFC, "RFC 3947") DEC_MD5_VID(NATT_DRAFT_IETF_IPSEC_NAT_T_IKE,"draft-ietf-ipsec-nat-t-ike") /*dp tech*/ { VID_DP_TECH_DEV ,VID_STRING, "DP_DEVICE", "DP_IPSec", NULL,0},
}; #define DEC_MD5_VID_D(id,str,descr) \ { VID_##id, VID_MD5HASH, str, descr, NULL, 0 }, #define DEC_MD5_VID(id,str) \ { VID_##id, VID_MD5HASH, str, NULL, NULL, 0 }, #define DEC_FSWAN_VID(id,str,descr) \ { VID_##id, VID_FSWAN_HASH, str, descr, NULL, 0 }, static struct vid_struct _vid_tab[] = { /* Implementation names */ { VID_OPENPGP, VID_STRING, "OpenPGP10171", "OpenPGP", NULL, 0 }, DEC_MD5_VID(KAME_RACOON, "KAME/racoon") { VID_MS_NT5, VID_MD5HASH | VID_SUBSTRING_DUMPHEXA, "MS NT5 ISAKMPOAKLEY", NULL, NULL, 0 }, DEC_MD5_VID(SSH_SENTINEL, "SSH Sentinel") DEC_MD5_VID(SSH_SENTINEL_1_1, "SSH Sentinel 1.1") DEC_MD5_VID(SSH_SENTINEL_1_2, "SSH Sentinel 1.2") DEC_MD5_VID(SSH_SENTINEL_1_3, "SSH Sentinel 1.3") DEC_MD5_VID(SSH_SENTINEL_1_4, "SSH Sentinel 1.4") DEC_MD5_VID(SSH_SENTINEL_1_4_1, "SSH Sentinel 1.4.1") /* These ones come from SSH vendors.txt */ DEC_MD5_VID(SSH_IPSEC_1_1_0, "Ssh Communications Security IPSEC Express version 1.1.0") DEC_MD5_VID(SSH_IPSEC_1_1_1,