Lines Matching refs:new

91  * If matching anonymous entry, then new entry is copied from anonymous entry.
171 struct remoteconf *new;
174 new = racoon_calloc(1, sizeof(*new));
175 if (new == NULL)
178 new->proposal = NULL;
181 new->doitype = IPSEC_DOI;
182 new->sittype = IPSECDOI_SIT_IDENTITY_ONLY;
183 new->idvtype = IDTYPE_UNDEFINED;
184 new->idvl_p = genlist_init();
185 new->nonce_size = DEFAULT_NONCE_SIZE;
186 new->passive = FALSE;
187 new->ike_frag = FALSE;
188 new->esp_frag = IP_MAXPACKET;
189 new->ini_contact = TRUE;
190 new->mode_cfg = FALSE;
191 new->pcheck_level = PROP_CHECK_STRICT;
192 new->verify_identifier = FALSE;
193 new->verify_cert = TRUE;
194 new->getcert_method = ISAKMP_GETCERT_PAYLOAD;
195 new->getcacert_method = ISAKMP_GETCERT_LOCALFILE;
196 new->cacerttype = ISAKMP_CERT_X509SIGN;
197 new->certtype = ISAKMP_CERT_NONE;
198 new->cacertfile = NULL;
199 new->send_cert = TRUE;
200 new->send_cr = TRUE;
201 new->support_proxy = FALSE;
203 new->script[i] = NULL;
204 new->gen_policy = FALSE;
205 new->retry_counter = lcconf->retry_counter;
206 new->retry_interval = lcconf->retry_interval;
207 new->nat_traversal = FALSE;
208 new->rsa_private = genlist_init();
209 new->rsa_public = genlist_init();
210 new->idv = NULL;
211 new->key = NULL;
213 new->dpd = TRUE; /* Enable DPD support by default */
214 new->dpd_interval = 0; /* Disable DPD checks by default */
215 new->dpd_retry = 5;
216 new->dpd_maxfails = 5;
218 new->weak_phase1_check = 0;
221 new->xauth = NULL;
224 return new;
231 struct remoteconf *new, *old;
241 new = duprmconf (old);
243 return new;
271 struct remoteconf *new;
273 new = racoon_calloc(1, sizeof(*new));
274 if (new == NULL)
276 memcpy (new, rmconf, sizeof (*new));
279 // new->proposal = ...;
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;
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)
369 struct remoteconf *new;
371 TAILQ_INSERT_HEAD(&rmtree, new, chain);
438 struct isakmpsa *new;
440 new = racoon_calloc(1, sizeof(*new));
441 if (new == NULL)
448 new->vendorid = VENDORID_UNKNOWN;
450 new->next = NULL;
451 new->rmconf = NULL;
453 new->gssid = NULL;
456 return new;
463 insisakmpsa(new, rmconf)
464 struct isakmpsa *new;
469 new->rmconf = rmconf;
472 rmconf->proposal = new;
478 p->next = new;
625 struct idspec *new;
627 new = racoon_calloc(1, sizeof(*new));
628 if (new == NULL)
630 new->idtype = IDTYPE_ADDRESS;
632 return new;