HomeSort by relevance Sort by last modified time
    Searched refs:lcconf (Results 1 - 20 of 20) sorted by null

  /external/ipsec-tools/src/racoon/
localconf.c 66 struct localconf *lcconf; variable in typeref:struct:localconf
73 lcconf = racoon_calloc(1, sizeof(*lcconf));
74 if (lcconf == NULL)
79 lcconf->racoon_conf = LC_DEFAULT_CF;
88 clear_myaddr(&lcconf->myaddrs);
90 if (lcconf->pathinfo[i]) {
91 racoon_free(lcconf->pathinfo[i]);
92 lcconf->pathinfo[i] = NULL;
96 if (lcconf->ident[i]
    [all...]
session.c 157 if (lcconf->pathinfo[LC_PATHTYPE_PIDFILE] == NULL)
159 else if (lcconf->pathinfo[LC_PATHTYPE_PIDFILE][0] == '/')
160 strlcpy(pid_file, lcconf->pathinfo[LC_PATHTYPE_PIDFILE], MAXPATHLEN);
163 strlcat(pid_file, lcconf->pathinfo[LC_PATHTYPE_PIDFILE], MAXPATHLEN);
210 if ((lcconf->sock_admin != -1) &&
211 (FD_ISSET(lcconf->sock_admin, &rfds)))
215 for (p = lcconf->myaddrs; p; p = p->next) {
222 if (FD_ISSET(lcconf->sock_pfkey, &rfds))
225 if (lcconf->rtsock >= 0 && FD_ISSET(lcconf->rtsock, &rfds))
    [all...]
main.c 187 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;
grabmyaddr.c 350 old = lcconf->myaddrs;
418 p->next = lcconf->myaddrs;
419 lcconf->myaddrs = p;
473 old = lcconf->myaddrs;
534 p->next = lcconf->myaddrs;
535 lcconf->myaddrs = p;
628 len = read(lcconf->rtsock, msg, sizeof(msg));
645 len = read(lcconf->rtsock, msg, sizeof(msg));
661 close(lcconf->rtsock);
662 lcconf->rtsock = -1
    [all...]
backupsa.c 178 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)
211 fp = fopen(lcconf->pathinfo[LC_PATHTYPE_BACKUPSA], "r");
217 lcconf->pathinfo[LC_PATHTYPE_BACKUPSA]);
234 line, lcconf->pathinfo[LC_PATHTYPE_BACKUPSA],
290 line, lcconf->pathinfo[LC_PATHTYPE_BACKUPSA],
298 line, lcconf->pathinfo[LC_PATHTYPE_BACKUPSA]);
306 line, lcconf->pathinfo[LC_PATHTYPE_BACKUPSA],
    [all...]
admin.c 108 so2 = accept(lcconf->sock_admin, (struct sockaddr *)&from, &fromlen);
565 lcconf->sock_admin = -1;
574 lcconf->sock_admin = socket(AF_UNIX, SOCK_STREAM, 0);
575 if (lcconf->sock_admin == -1) {
582 if (bind(lcconf->sock_admin, (struct sockaddr *)&sunaddr,
587 (void)close(lcconf->sock_admin);
596 (void)close(lcconf->sock_admin);
604 (void)close(lcconf->sock_admin);
608 if (listen(lcconf->sock_admin, 5) != 0) {
612 (void)close(lcconf->sock_admin)
    [all...]
privsep.c 171 if (lcconf->uid == 0)
179 if ((lcconf->pathinfo[LC_PATHTYPE_CERT] == NULL) ||
180 (lcconf->pathinfo[LC_PATHTYPE_SCRIPT] == NULL)) {
200 if (lcconf->chroot != NULL) {
201 if (chdir(lcconf->chroot) != 0) {
203 "Cannot chdir(%s): %s\n", lcconf->chroot,
207 if (chroot(lcconf->chroot) != 0) {
209 "Cannot chroot(%s): %s\n", lcconf->chroot,
215 if (setgid(lcconf->gid) != 0) {
217 "Cannot setgid(%d): %s\n", lcconf->gid
    [all...]
localconf.h 123 extern struct localconf *lcconf;
cfparse.y 298 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; } EO
    [all...]
nattraversal.c 248 opts->float_port = lcconf->port_isakmp_natt;
260 opts->float_port = lcconf->port_isakmp_natt;
268 opts->float_port = lcconf->port_isakmp_natt;
357 sched_new (lcconf->natt_ka_interval, natt_keepalive_send, NULL);
366 if (lcconf->natt_ka_interval > 0)
367 sched_new (lcconf->natt_ka_interval, natt_keepalive_send, NULL);
pfkey.c 205 msg = (struct sadb_msg *)pk_recv(lcconf->sock_pfkey, &len);
372 if (pfkey_send_flush(lcconf->sock_pfkey, satype) < 0) {
404 if ((lcconf->sock_pfkey = privsep_pfkey_open()) < 0) {
409 if (fcntl(lcconf->sock_pfkey, F_SETFL, O_NONBLOCK) == -1)
417 if (pfkey_send_register(lcconf->sock_pfkey,
419 pfkey_recv_register(lcconf->sock_pfkey) < 0) {
431 pfkey_close(lcconf->sock_pfkey);
437 if (pfkey_send_spddump(lcconf->sock_pfkey) < 0) {
441 pfkey_close(lcconf->sock_pfkey);
446 pfkey_close(lcconf->sock_pfkey)
    [all...]
handler.c 908 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;
remoteconf.c 205 new->retry_counter = lcconf->retry_counter;
206 new->retry_interval = lcconf->retry_interval;
646 script_dir = lcconf->pathinfo[LC_PATHTYPE_SCRIPT];
isakmp.c 1180 if(extract_port(local) == lcconf->port_isakmp_natt)
    [all...]
isakmp_inf.c 1245 pfkey_send_delete(lcconf->sock_pfkey,
1318 if (pfkey_send_delete_all(lcconf->sock_pfkey,
    [all...]
proposal.c 1051 if (lcconf->complex_bundle)
1107 if (lcconf->complex_bundle) {
oakley.c     [all...]
ipsec_doi.c 763 if (lcconf->gss_id_enc == LC_GSSENC_LATIN1) {
    [all...]
isakmp_quick.c 135 iph2->sce = sched_new(lcconf->wait_ph2complete,
1169 iph2->sce = sched_new(lcconf->wait_ph2complete,
    [all...]
  /external/ipsec-tools/
setup.c 65 struct localconf *lcconf = &localconf; variable in typeref:struct:localconf

Completed in 405 milliseconds