Lines Matching refs:new

171 	struct remoteconf *new;  in newrmconf()  local
174 new = racoon_calloc(1, sizeof(*new)); in newrmconf()
175 if (new == NULL) in newrmconf()
178 new->proposal = NULL; in newrmconf()
181 new->doitype = IPSEC_DOI; in newrmconf()
182 new->sittype = IPSECDOI_SIT_IDENTITY_ONLY; in newrmconf()
183 new->idvtype = IDTYPE_UNDEFINED; in newrmconf()
184 new->idvl_p = genlist_init(); in newrmconf()
185 new->nonce_size = DEFAULT_NONCE_SIZE; in newrmconf()
186 new->passive = FALSE; in newrmconf()
187 new->ike_frag = FALSE; in newrmconf()
188 new->esp_frag = IP_MAXPACKET; in newrmconf()
189 new->ini_contact = TRUE; in newrmconf()
190 new->mode_cfg = FALSE; in newrmconf()
191 new->pcheck_level = PROP_CHECK_STRICT; in newrmconf()
192 new->verify_identifier = FALSE; in newrmconf()
193 new->verify_cert = TRUE; in newrmconf()
194 new->getcert_method = ISAKMP_GETCERT_PAYLOAD; in newrmconf()
195 new->getcacert_method = ISAKMP_GETCERT_LOCALFILE; in newrmconf()
196 new->cacerttype = ISAKMP_CERT_X509SIGN; in newrmconf()
197 new->certtype = ISAKMP_CERT_NONE; in newrmconf()
198 new->cacertfile = NULL; in newrmconf()
199 new->send_cert = TRUE; in newrmconf()
200 new->send_cr = TRUE; in newrmconf()
201 new->support_proxy = FALSE; in newrmconf()
203 new->script[i] = NULL; in newrmconf()
204 new->gen_policy = FALSE; in newrmconf()
205 new->retry_counter = lcconf->retry_counter; in newrmconf()
206 new->retry_interval = lcconf->retry_interval; in newrmconf()
207 new->nat_traversal = FALSE; in newrmconf()
208 new->rsa_private = genlist_init(); in newrmconf()
209 new->rsa_public = genlist_init(); in newrmconf()
210 new->idv = NULL; in newrmconf()
211 new->key = NULL; in newrmconf()
213 new->dpd = TRUE; /* Enable DPD support by default */ in newrmconf()
214 new->dpd_interval = 0; /* Disable DPD checks by default */ in newrmconf()
215 new->dpd_retry = 5; in newrmconf()
216 new->dpd_maxfails = 5; in newrmconf()
218 new->weak_phase1_check = 0; in newrmconf()
221 new->xauth = NULL; in newrmconf()
224 return new; in newrmconf()
231 struct remoteconf *new, *old; local
241 new = duprmconf (old);
243 return new;
271 struct remoteconf *new; local
273 new = racoon_calloc(1, sizeof(*new));
274 if (new == NULL)
276 memcpy (new, rmconf, sizeof (*new));
282 if (new->etypes)
283 new->etypes=dupetypes(new->etypes);
284 new->idvl_p = genlist_init();
285 genlist_foreach(rmconf->idvl_p, dupidvl, new->idvl_p);
287 return new;
337 struct etypes *new; local
342 new = racoon_malloc(sizeof(struct etypes));
343 if (new == NULL)
346 new->type = orig->type;
347 new->next = NULL;
350 new->next=dupetypes(orig->next);
352 return new;
368 insrmconf(new) in insrmconf() argument
369 struct remoteconf *new; in insrmconf()
371 TAILQ_INSERT_HEAD(&rmtree, new, chain);
436 struct isakmpsa *new; in newisakmpsa() local
438 new = racoon_calloc(1, sizeof(*new)); in newisakmpsa()
439 if (new == NULL) in newisakmpsa()
446 new->vendorid = VENDORID_UNKNOWN; in newisakmpsa()
448 new->next = NULL; in newisakmpsa()
449 new->rmconf = NULL; in newisakmpsa()
451 new->gssid = NULL; in newisakmpsa()
454 return new; in newisakmpsa()
461 insisakmpsa(new, rmconf) in insisakmpsa() argument
462 struct isakmpsa *new; in insisakmpsa()
467 new->rmconf = rmconf;
470 rmconf->proposal = new;
476 p->next = new;
623 struct idspec *new; in newidspec() local
625 new = racoon_calloc(1, sizeof(*new)); in newidspec()
626 if (new == NULL) in newidspec()
628 new->idtype = IDTYPE_ADDRESS; in newidspec()
630 return new; in newidspec()