• Home
  • Raw
  • Download

Lines Matching refs:cur_rmconf

148 static struct remoteconf *cur_rmconf;  variable
1525 cur_rmconf = new;
1528 if (prspec == NULL || !cur_rmconf->inherited_from
1529 || !cur_rmconf->inherited_from->proposal)
1531 prspec->lifetime = cur_rmconf->inherited_from->proposal->lifetime;
1532 prspec->lifebyte = cur_rmconf->inherited_from->proposal->lifebyte;
1533 insprspec(prspec, &cur_rmconf->prhead);
1548 cur_rmconf = new;
1554 insprspec(prspec, &cur_rmconf->prhead);
1563 if (cur_rmconf->etypes == NULL) {
1568 if (cur_rmconf->idvtype == IDTYPE_UNDEFINED)
1569 cur_rmconf->idvtype = IDTYPE_ADDRESS;
1572 if (cur_rmconf->idvtype == IDTYPE_ASN1DN) {
1573 if (cur_rmconf->mycertfile) {
1574 if (cur_rmconf->idv)
1578 } else if (cur_rmconf->idv) {
1587 if (cur_rmconf->prhead->spspec == NULL
1588 && cur_rmconf->inherited_from
1589 && cur_rmconf->inherited_from->prhead) {
1590 cur_rmconf->prhead->spspec = cur_rmconf->inherited_from->prhead->spspec;
1592 if (set_isakmp_proposal(cur_rmconf, cur_rmconf->prhead) != 0)
1596 if (check_etypeok(cur_rmconf, ISAKMP_ETYPE_AGG) != NULL) {
1601 for (p = cur_rmconf->proposal; p; p = p->next) {
1612 cur_rmconf->dh_group = b;
1614 if (cur_rmconf->dh_group == 0) {
1620 if (oakley_setdhgroup(cur_rmconf->dh_group,
1621 &cur_rmconf->dhgrp) < 0) {
1627 insrmconf(cur_rmconf);
1653 cur_rmconf->etypes = NULL;
1656 | DOI DOITYPE { cur_rmconf->doitype = $2; } EOS
1657 | SITUATION SITUATIONTYPE { cur_rmconf->sittype = $2; } EOS
1663 cur_rmconf->getcert_method = ISAKMP_GETCERT_LOCALFILE;
1665 if (cur_rmconf->peerscertfile != NULL)
1666 racoon_free(cur_rmconf->peerscertfile);
1667 cur_rmconf->peerscertfile = racoon_strdup($2->v);
1668 STRDUP_FATAL(cur_rmconf->peerscertfile);
1674 cur_rmconf->cacerttype = $2;
1675 cur_rmconf->getcacert_method = ISAKMP_GETCERT_LOCALFILE;
1676 if (cur_rmconf->cacertfile != NULL)
1677 racoon_free(cur_rmconf->cacertfile);
1678 cur_rmconf->cacertfile = racoon_strdup($3->v);
1679 STRDUP_FATAL(cur_rmconf->cacertfile);
1685 cur_rmconf->getcert_method = ISAKMP_GETCERT_LOCALFILE;
1686 if (cur_rmconf->peerscertfile != NULL)
1687 racoon_free(cur_rmconf->peerscertfile);
1688 cur_rmconf->peerscertfile = racoon_strdup($3->v);
1689 STRDUP_FATAL(cur_rmconf->peerscertfile);
1702 if (cur_rmconf->getcert_method == ISAKMP_GETCERT_DNS) {
1705 cur_rmconf->getcert_method);
1708 cur_rmconf->getcert_method = ISAKMP_GETCERT_LOCALFILE;
1709 if (rsa_parse_file(cur_rmconf->rsa_public, path, RSA_TYPE_PUBLIC)) {
1718 if (cur_rmconf->getcert_method) {
1722 cur_rmconf->getcert_method = ISAKMP_GETCERT_DNS;
1723 cur_rmconf->peerscertfile = NULL;
1726 | VERIFY_CERT SWITCH { cur_rmconf->verify_cert = $2; } EOS
1727 | SEND_CERT SWITCH { cur_rmconf->send_cert = $2; } EOS
1728 | SEND_CR SWITCH { cur_rmconf->send_cr = $2; } EOS
1731 if (set_identifier(&cur_rmconf->idv, $2, $3) != 0) {
1735 cur_rmconf->idvtype = $2;
1740 if (set_identifier_qual(&cur_rmconf->idv, $2, $4, $3) != 0) {
1744 cur_rmconf->idvtype = $2;
1751 if (xauth_rmconf_used(&cur_rmconf->xauth) == -1) {
1755 if ((cur_rmconf->xauth->login = vdup($2)) == NULL) {
1778 genlist_append (cur_rmconf->idvl_p, id);
1795 genlist_append (cur_rmconf->idvl_p, id);
1798 | VERIFY_IDENTIFIER SWITCH { cur_rmconf->verify_identifier = $2; } EOS
1799 | NONCE_SIZE NUMBER { cur_rmconf->nonce_size = $2; } EOS
1806 | PASSIVE SWITCH { cur_rmconf->passive = $2; } EOS
1807 | IKE_FRAG SWITCH { cur_rmconf->ike_frag = $2; } EOS
1808 | IKE_FRAG REMOTE_FORCE_LEVEL { cur_rmconf->ike_frag = ISAKMP_FRAG_FORCE; } EOS
1812 cur_rmconf->esp_frag = $2;
1820 if (cur_rmconf->script[SCRIPT_PHASE1_UP] != NULL)
1821 vfree(cur_rmconf->script[SCRIPT_PHASE1_UP]);
1823 cur_rmconf->script[SCRIPT_PHASE1_UP] =
1827 if (cur_rmconf->script[SCRIPT_PHASE1_DOWN] != NULL)
1828 vfree(cur_rmconf->script[SCRIPT_PHASE1_DOWN]);
1830 cur_rmconf->script[SCRIPT_PHASE1_DOWN] =
1833 | MODE_CFG SWITCH { cur_rmconf->mode_cfg = $2; } EOS
1835 cur_rmconf->weak_phase1_check = $2;
1837 | GENERATE_POLICY SWITCH { cur_rmconf->gen_policy = $2; } EOS
1838 | GENERATE_POLICY GENERATE_LEVEL { cur_rmconf->gen_policy = $2; } EOS
1839 | SUPPORT_PROXY SWITCH { cur_rmconf->support_proxy = $2; } EOS
1840 | INITIAL_CONTACT SWITCH { cur_rmconf->ini_contact = $2; } EOS
1845 cur_rmconf->nat_traversal = $2;
1856 cur_rmconf->nat_traversal = NATT_FORCE;
1866 cur_rmconf->dpd = $2;
1874 cur_rmconf->dpd_interval = $2;
1883 cur_rmconf->dpd_retry = $2;
1892 cur_rmconf->dpd_maxfails = $2;
1900 cur_rmconf->ph1id = $2;
1905 cur_rmconf->prhead->lifetime = $3 * $4;
1908 | PROPOSAL_CHECK PROPOSAL_CHECK_LEVEL { cur_rmconf->pcheck_level = $2; } EOS
1917 cur_rmconf->prhead->lifebyte = fix_lifebyte($3 * $4);
1918 if (cur_rmconf->prhead->lifebyte == 0)
1930 insspspec(spspec, &cur_rmconf->prhead);
1946 if (cur_rmconf->etypes == NULL)
1947 cur_rmconf->etypes = new;
1950 for (p = cur_rmconf->etypes;
1961 cur_rmconf->certtype = $1;
1962 if (cur_rmconf->mycertfile != NULL)
1963 racoon_free(cur_rmconf->mycertfile);
1964 cur_rmconf->mycertfile = racoon_strdup($2->v);
1965 STRDUP_FATAL(cur_rmconf->mycertfile);
1967 if (cur_rmconf->myprivfile != NULL)
1968 racoon_free(cur_rmconf->myprivfile);
1969 cur_rmconf->myprivfile = racoon_strdup($3->v);
1970 STRDUP_FATAL(cur_rmconf->myprivfile);
1983 cur_rmconf->certtype = $1;
1984 cur_rmconf->send_cr = FALSE;
1985 cur_rmconf->send_cert = FALSE;
1986 cur_rmconf->verify_cert = FALSE;
1987 if (rsa_parse_file(cur_rmconf->rsa_private, path, RSA_TYPE_PRIVATE)) {
2031 cur_rmconf->prhead->spspec->lifetime = $3 * $4;
2040 cur_rmconf->prhead->spspec->lifebyte = fix_lifebyte($3 * $4);
2041 if (cur_rmconf->prhead->spspec->lifebyte == 0)
2048 cur_rmconf->prhead->spspec->algclass[algclass_isakmp_dh] = $2;
2053 if (cur_rmconf->prhead->spspec->vendorid != VENDORID_GSSAPI) {
2057 if (cur_rmconf->prhead->spspec->gssid != NULL)
2058 racoon_free(cur_rmconf->prhead->spspec->gssid);
2059 cur_rmconf->prhead->spspec->gssid =
2061 STRDUP_FATAL(cur_rmconf->prhead->spspec->gssid);
2093 cur_rmconf->prhead->spspec->algclass[algclass_isakmp_enc] = doi;
2107 cur_rmconf->prhead->spspec->encklen = $3;
2109 cur_rmconf->prhead->spspec->encklen = defklen;
2112 cur_rmconf->prhead->spspec->algclass[algclass_isakmp_hash] = doi;
2115 cur_rmconf->prhead->spspec->algclass[algclass_isakmp_ameth] = doi;
2122 if (cur_rmconf->prhead->spspec->vendorid !=
2132 cur_rmconf->prhead->spspec->vendorid =
2136 if (cur_rmconf->certtype == ISAKMP_CERT_PLAINRSA) {
2137 if (rsa_list_count(cur_rmconf->rsa_private) == 0) {
2142 if (rsa_list_count(cur_rmconf->rsa_public) == 0) {