Lines Matching refs:remoteconf

313 static void add_proposal(struct remoteconf *remoteconf,  in add_proposal()  argument
325 p->rmconf = remoteconf; in add_proposal()
327 if (!remoteconf->proposal) { in add_proposal()
329 remoteconf->proposal = p; in add_proposal()
331 struct isakmpsa *q = remoteconf->proposal; in add_proposal()
350 static void set_pre_shared_key(struct remoteconf *remoteconf, in set_pre_shared_key() argument
355 remoteconf->idv = strtovchar(identifier); in set_pre_shared_key()
356 remoteconf->etypes->type = ISAKMP_ETYPE_AGG; in set_pre_shared_key()
358 remoteconf->idvtype = IDTYPE_KEYID; in set_pre_shared_key()
360 remoteconf->idvtype = IDTYPE_FQDN; in set_pre_shared_key()
362 remoteconf->idvtype = IDTYPE_USERFQDN; in set_pre_shared_key()
368 static void set_certificates(struct remoteconf *remoteconf, in set_certificates() argument
372 remoteconf->myprivfile = user_private_key; in set_certificates()
373 remoteconf->mycertfile = user_certificate; in set_certificates()
375 remoteconf->idvtype = IDTYPE_ASN1DN; in set_certificates()
378 remoteconf->verify_cert = FALSE; in set_certificates()
380 remoteconf->cacertfile = ca_certificate; in set_certificates()
383 remoteconf->peerscertfile = server_certificate; in set_certificates()
384 remoteconf->getcert_method = ISAKMP_GETCERT_LOCALFILE; in set_certificates()
390 static void set_xauth_and_more(struct remoteconf *remoteconf, in set_xauth_and_more() argument
399 remoteconf->xauth = xauth; in set_xauth_and_more()
400 remoteconf->mode_cfg = TRUE; in set_xauth_and_more()
401 remoteconf->script[SCRIPT_PHASE1_UP] = strtovchar(phase1_up); in set_xauth_and_more()
420 struct remoteconf *remoteconf = NULL; in setup() local
445 remoteconf = newrmconf(); in setup()
446 remoteconf->etypes = racoon_calloc(1, sizeof(struct etypes)); in setup()
447 remoteconf->etypes->type = ISAKMP_ETYPE_IDENT; in setup()
448 remoteconf->idvtype = IDTYPE_ADDRESS; in setup()
449 remoteconf->ike_frag = TRUE; in setup()
450 remoteconf->pcheck_level = PROP_CHECK_CLAIM; in setup()
451 remoteconf->certtype = ISAKMP_CERT_X509SIGN; in setup()
452 remoteconf->gen_policy = TRUE; in setup()
453 remoteconf->nat_traversal = TRUE; in setup()
454 remoteconf->dh_group = OAKLEY_ATTR_GRP_DESC_MODP1024; in setup()
455 remoteconf->script[SCRIPT_PHASE1_UP] = strtovchar(""); in setup()
456 remoteconf->script[SCRIPT_PHASE1_DOWN] = strtovchar(""); in setup()
457 oakley_setdhgroup(remoteconf->dh_group, &remoteconf->dhgrp); in setup()
458 remoteconf->remote = dupsaddr(targets[0]); in setup()
463 set_pre_shared_key(remoteconf, argv[4], argv[5]); in setup()
469 set_certificates(remoteconf, argv[4], argv[5], argv[6], argv[7]); in setup()
476 set_pre_shared_key(remoteconf, argv[4], argv[5]); in setup()
477 set_xauth_and_more(remoteconf, argv[6], argv[7], argv[8], argv[9]); in setup()
480 set_certificates(remoteconf, argv[4], argv[5], argv[6], argv[7]); in setup()
481 set_xauth_and_more(remoteconf, argv[8], argv[9], argv[10], argv[11]); in setup()
484 set_certificates(remoteconf, NULL, NULL, argv[4], argv[5]); in setup()
485 set_xauth_and_more(remoteconf, argv[6], argv[7], argv[8], argv[9]); in setup()
507 add_proposal(remoteconf, auth, in setup()
509 add_proposal(remoteconf, auth, in setup()
514 add_proposal(remoteconf, auth, in setup()
516 add_proposal(remoteconf, auth, in setup()
518 add_proposal(remoteconf, auth, in setup()
520 add_proposal(remoteconf, auth, in setup()
522 add_proposal(remoteconf, auth, in setup()
524 add_proposal(remoteconf, auth, in setup()
526 add_proposal(remoteconf, auth, in setup()
528 add_proposal(remoteconf, auth, in setup()
530 add_proposal(remoteconf, auth, in setup()
532 add_proposal(remoteconf, auth, in setup()
534 add_proposal(remoteconf, auth, in setup()
536 add_proposal(remoteconf, auth, in setup()
538 add_proposal(remoteconf, auth, in setup()
540 add_proposal(remoteconf, auth, in setup()
544 insrmconf(remoteconf); in setup()
547 if (remoteconf->xauth) { in setup()
548 isakmp_ph1begin_i(remoteconf, remoteconf->remote, source); in setup()