{ .type.oakley = OAKLEY_HASH_ALGORITHM, -1 }, { .type.oakley = OAKLEY_AUTHENTICATION_METHOD, -1 }, { .type.oakley = OAKLEY_GROUP_DESCRIPTION, -1 }, }; static struct db_trans oakley_trans_empty[] = { { AD_TR(KEY_IKE, otempty) }, }; static struct db_prop oakley_pc_empty[] = { { AD_PR(PROTO_ISAKMP, oakley_trans_empty) } }; static struct db_prop_conj oakley_props_empty[] = { { AD_PC(oakley_pc_empty) } }; struct db_sa oakley_empty = { AD_SAp(oakley_props_empty) }; char *progname; void exit_tool(int stat) { exit(stat); } main(int argc, char *argv[]){ int i; struct db_sa *gsp = NULL; struct db_sa *sa1 = NULL; struct db_sa *sa2 = NULL; progname = argv[0];
static struct db_prop_conj oakley_props_rsasig_xauthc[] = { { AD_PC(oakley_pc_rsasig_xauthc) } }; static struct db_prop_conj oakley_props_pskrsasig_xauthc[] = { { AD_PC(oakley_pc_pskrsasig_xauthc) } }; static struct db_prop_conj oakley_props_psk_xauths[] = { { AD_PC(oakley_pc_psk_xauths) } }; static struct db_prop_conj oakley_props_rsasig_xauths[] = { { AD_PC(oakley_pc_rsasig_xauths) } }; static struct db_prop_conj oakley_props_pskrsasig_xauths[] = { { AD_PC(oakley_pc_pskrsasig_xauths) } }; #endif /* the sadb entry, subscripted by POLICY_PSK and POLICY_RSASIG bits */ struct db_sa oakley_sadb[] = { { AD_NULL }, /* none */ { AD_SAp(oakley_props_psk) }, /* POLICY_PSK */ { AD_SAp(oakley_props_rsasig) }, /* POLICY_RSASIG */ { AD_SAp(oakley_props_pskrsasig) }, /* POLICY_PSK + POLICY_RSASIG */ #ifdef XAUTH { AD_NULL }, /* POLICY_XAUTHSERVER + none */ { AD_SAp(oakley_props_psk_xauths) }, /* POLICY_XAUTHSERVER + PSK */ { AD_SAp(oakley_props_rsasig_xauths) }, /* POLICY_XAUTHSERVER + RSA */ { AD_SAp(oakley_props_pskrsasig_xauths)},/* POLICY_XAUTHSERVER + RSA+PSK */ { AD_NULL }, /* POLICY_XAUTHCLIENT + none */ { AD_SAp(oakley_props_psk_xauthc) }, /* POLICY_XAUTHCLIENT + PSK */ { AD_SAp(oakley_props_rsasig_xauthc)}, /* POLICY_XAUTHCLIENT + RSA */ { AD_SAp(oakley_props_pskrsasig_xauthc)},/* POLICY_XAUTHCLIENT + RSA+PSK */ { AD_NULL }, /* XAUTHCLIENT+XAUTHSERVER + none */ { AD_NULL }, /* XAUTHCLIENT+XAUTHSERVER + PSK */ { AD_NULL }, /* XAUTHCLIENT+XAUTHSERVER + RSA */ { AD_NULL }, /* XAUTHCLIENT+XAUTHSERVER + RSA+PSK */