Home
last modified time | relevance | path

Searched refs:lcconf (Results 1 – 20 of 20) sorted by relevance

/external/ipsec-tools/src/racoon/
Dlocalconf.c66 struct localconf *lcconf; variable
73 lcconf = racoon_calloc(1, sizeof(*lcconf)); in initlcconf()
74 if (lcconf == NULL) in initlcconf()
79 lcconf->racoon_conf = LC_DEFAULT_CF; in initlcconf()
88 clear_myaddr(&lcconf->myaddrs); in flushlcconf()
90 if (lcconf->pathinfo[i]) { in flushlcconf()
91 racoon_free(lcconf->pathinfo[i]); in flushlcconf()
92 lcconf->pathinfo[i] = NULL; in flushlcconf()
96 if (lcconf->ident[i]) in flushlcconf()
97 vfree(lcconf->ident[i]); in flushlcconf()
[all …]
Dsession.c157 if (lcconf->pathinfo[LC_PATHTYPE_PIDFILE] == NULL) in session()
159 else if (lcconf->pathinfo[LC_PATHTYPE_PIDFILE][0] == '/') in session()
160 strlcpy(pid_file, lcconf->pathinfo[LC_PATHTYPE_PIDFILE], MAXPATHLEN); in session()
163 strlcat(pid_file, lcconf->pathinfo[LC_PATHTYPE_PIDFILE], MAXPATHLEN); in session()
210 if ((lcconf->sock_admin != -1) && in session()
211 (FD_ISSET(lcconf->sock_admin, &rfds))) in session()
215 for (p = lcconf->myaddrs; p; p = p->next) { in session()
222 if (FD_ISSET(lcconf->sock_pfkey, &rfds)) in session()
225 if (lcconf->rtsock >= 0 && FD_ISSET(lcconf->rtsock, &rfds)) { in session()
226 if (update_myaddrs() && lcconf->autograbaddr) in session()
[all …]
Dmain.c187 lcconf->racoon_conf);
328 lcconf->port_isakmp = atoi(optarg);
331 lcconf->port_isakmp_natt = atoi(optarg);
335 lcconf->port_admin = atoi(optarg);
343 lcconf->racoon_conf = optarg;
372 lcconf->default_af = AF_INET;
375 lcconf->default_af = AF_INET6;
Dbackupsa.c178 if (safefile(lcconf->pathinfo[LC_PATHTYPE_BACKUPSA], 1) != 0 ||
179 (fp = fopen(lcconf->pathinfo[LC_PATHTYPE_BACKUPSA], "a")) == NULL) {
182 lcconf->pathinfo[LC_PATHTYPE_BACKUPSA]);
210 if (safefile(lcconf->pathinfo[LC_PATHTYPE_BACKUPSA], 1) == 0) in backupsa_from_file()
211 fp = fopen(lcconf->pathinfo[LC_PATHTYPE_BACKUPSA], "r"); in backupsa_from_file()
217 lcconf->pathinfo[LC_PATHTYPE_BACKUPSA]); in backupsa_from_file()
234 line, lcconf->pathinfo[LC_PATHTYPE_BACKUPSA], in backupsa_from_file()
290 line, lcconf->pathinfo[LC_PATHTYPE_BACKUPSA], in backupsa_from_file()
298 line, lcconf->pathinfo[LC_PATHTYPE_BACKUPSA]); in backupsa_from_file()
306 line, lcconf->pathinfo[LC_PATHTYPE_BACKUPSA], in backupsa_from_file()
[all …]
Dgrabmyaddr.c354 old = lcconf->myaddrs; in grab_myaddrs()
427 p->next = lcconf->myaddrs; in grab_myaddrs()
428 lcconf->myaddrs = p; in grab_myaddrs()
486 old = lcconf->myaddrs; in grab_myaddrs()
552 p->next = lcconf->myaddrs; in grab_myaddrs()
553 lcconf->myaddrs = p; in grab_myaddrs()
649 len = read(lcconf->rtsock, msg, sizeof(msg)); in update_myaddrs()
666 len = read(lcconf->rtsock, msg, sizeof(msg)); in update_myaddrs()
682 close(lcconf->rtsock); in update_myaddrs()
683 lcconf->rtsock = -1; in update_myaddrs()
[all …]
Dadmin.c108 so2 = accept(lcconf->sock_admin, (struct sockaddr *)&from, &fromlen); in admin_handler()
565 lcconf->sock_admin = -1; in admin_init()
574 lcconf->sock_admin = socket(AF_UNIX, SOCK_STREAM, 0); in admin_init()
575 if (lcconf->sock_admin == -1) { in admin_init()
582 if (bind(lcconf->sock_admin, (struct sockaddr *)&sunaddr, in admin_init()
587 (void)close(lcconf->sock_admin); in admin_init()
596 (void)close(lcconf->sock_admin); in admin_init()
604 (void)close(lcconf->sock_admin); in admin_init()
608 if (listen(lcconf->sock_admin, 5) != 0) { in admin_init()
612 (void)close(lcconf->sock_admin); in admin_init()
[all …]
Dcfparse.y298 lcconf->uid = pw->pw_uid;
301 | USER NUMBER { lcconf->uid = $2; } EOS
310 lcconf->gid = gr->gr_gid;
313 | GROUP NUMBER { lcconf->gid = $2; } EOS
314 | CHROOT QUOTEDSTRING { lcconf->chroot = $2->v; } EOS
327 if (lcconf->pathinfo[$2])
328 racoon_free(lcconf->pathinfo[$2]);
331 lcconf->pathinfo[$2] = racoon_strdup($3->v);
332 STRDUP_FATAL(lcconf->pathinfo[$2]);
340 : COMPLEX_BUNDLE SWITCH { lcconf->complex_bundle = $2; } EOS
[all …]
Dprivsep.c171 if (lcconf->uid == 0) in privsep_init()
179 if ((lcconf->pathinfo[LC_PATHTYPE_CERT] == NULL) || in privsep_init()
180 (lcconf->pathinfo[LC_PATHTYPE_SCRIPT] == NULL)) { in privsep_init()
200 if (lcconf->chroot != NULL) { in privsep_init()
201 if (chdir(lcconf->chroot) != 0) { in privsep_init()
203 "Cannot chdir(%s): %s\n", lcconf->chroot, in privsep_init()
207 if (chroot(lcconf->chroot) != 0) { in privsep_init()
209 "Cannot chroot(%s): %s\n", lcconf->chroot, in privsep_init()
215 if (setgid(lcconf->gid) != 0) { in privsep_init()
217 "Cannot setgid(%d): %s\n", lcconf->gid, in privsep_init()
[all …]
Dnattraversal.c248 opts->float_port = lcconf->port_isakmp_natt; in natt_fill_options()
260 opts->float_port = lcconf->port_isakmp_natt; in natt_fill_options()
268 opts->float_port = lcconf->port_isakmp_natt; in natt_fill_options()
357 sched_new (lcconf->natt_ka_interval, natt_keepalive_send, NULL); in natt_keepalive_send()
366 if (lcconf->natt_ka_interval > 0) in natt_keepalive_init()
367 sched_new (lcconf->natt_ka_interval, natt_keepalive_send, NULL); in natt_keepalive_init()
Dpfkey.c205 msg = (struct sadb_msg *)pk_recv(lcconf->sock_pfkey, &len); in pfkey_handler()
372 if (pfkey_send_flush(lcconf->sock_pfkey, satype) < 0) {
404 if ((lcconf->sock_pfkey = privsep_pfkey_open()) < 0) { in pfkey_init()
409 if (fcntl(lcconf->sock_pfkey, F_SETFL, O_NONBLOCK) == -1) in pfkey_init()
417 if (pfkey_send_register(lcconf->sock_pfkey, in pfkey_init()
419 pfkey_recv_register(lcconf->sock_pfkey) < 0) { in pfkey_init()
431 pfkey_close(lcconf->sock_pfkey); in pfkey_init()
437 if (pfkey_send_spddump(lcconf->sock_pfkey) < 0) { in pfkey_init()
441 pfkey_close(lcconf->sock_pfkey); in pfkey_init()
446 pfkey_close(lcconf->sock_pfkey); in pfkey_init()
[all …]
Dhandler.c908 r->local, r->remote, lcconf->count_persend);
938 if (lcconf->retry_counter == 0) {
979 new->retry_counter = lcconf->retry_counter;
1021 lt = lcconf->retry_counter * lcconf->retry_interval;
1038 time_t lt = lcconf->retry_counter * lcconf->retry_interval; in init_recvdpkt()
Dlocalconf.h123 extern struct localconf *lcconf;
Disakmp.c1182 if(extract_port(local) == lcconf->port_isakmp_natt) in isakmp_ph1begin_r()
1586 for (p = lcconf->myaddrs; p; p = p->next) { in isakmp_open()
1609 lcconf->default_af); in isakmp_open()
1742 if (! lcconf->autograbaddr && lcconf->strict_address) in isakmp_open()
1771 for (p = lcconf->myaddrs; p; p = next) { in isakmp_close()
1783 lcconf->myaddrs = NULL; in isakmp_close()
1858 iph1->local, iph1->remote, lcconf->count_persend);
2200 iph2->retry_checkph1 = lcconf->retry_checkph1;
2219 iph2->retry_checkph1 = lcconf->retry_checkph1;
2508 + sizeof(time_t) + lcconf->secret_size;
[all …]
Dremoteconf.c205 new->retry_counter = lcconf->retry_counter; in newrmconf()
206 new->retry_interval = lcconf->retry_interval; in newrmconf()
644 script_dir = lcconf->pathinfo[LC_PATHTYPE_SCRIPT];
Disakmp_inf.c1244 pfkey_send_delete(lcconf->sock_pfkey,
1317 if (pfkey_send_delete_all(lcconf->sock_pfkey,
1332 if (pfkey_send_delete_all(lcconf->sock_pfkey,
1455 pfkey_send_delete(lcconf->sock_pfkey,
Doakley.c1453 lcconf->pathinfo[LC_PATHTYPE_CERT],
3252 if (lcconf->pad_excltail)
3259 if (lcconf->pad_strict) {
3348 if (lcconf->pad_random) {
3356 if (lcconf->pad_excltail)
3423 if (lcconf->pad_randomlen)
3424 padlen += ((eay_random() % (lcconf->pad_maxsize + 1) + 1) *
Dproposal.c1051 if (lcconf->complex_bundle)
1107 if (lcconf->complex_bundle) {
Dipsec_doi.c763 if (lcconf->gss_id_enc == LC_GSSENC_LATIN1) {
2872 if (lcconf->gss_id_enc == LC_GSSENC_LATIN1)
2880 if (lcconf->gss_id_enc == LC_GSSENC_LATIN1) {
3881 else if (lcconf->ident[type])
3882 new = vdup(lcconf->ident[type]);
Disakmp_quick.c134 iph2->sce = sched_new(lcconf->wait_ph2complete,
1168 iph2->sce = sched_new(lcconf->wait_ph2complete,
/external/ipsec-tools/
Dsetup.c66 struct localconf *lcconf = &localconf; variable