Lines Matching refs:new
207 /* set new pathinfo */
647 struct remoteconf *new;
650 new = newrmconf();
651 if (new == NULL) {
652 yyerror("failed to get new remoteconf.");
656 new->remote = $2;
657 cur_rmconf = new;
844 struct etypes *new;
845 new = racoon_malloc(sizeof(struct etypes));
846 if (new == NULL) {
850 new->type = $2;
851 new->next = NULL;
853 cur_rmconf->etypes = new;
860 p->next = new;
1043 struct proposalspec *new;
1045 new = racoon_calloc(1, sizeof(*new));
1046 if (new == NULL)
1049 return new;
1085 struct secprotospec *new;
1087 new = racoon_calloc(1, sizeof(*new));
1088 if (new == NULL) {
1093 new->encklen = 0; /*XXX*/
1100 new->vendorid = VENDORID_UNKNOWN;
1102 return new;
1234 struct isakmpsa *new;
1271 /* set new sa */
1272 new = newisakmpsa();
1273 if (new == NULL) {
1277 new->prop_no = prop_no;
1278 new->trns_no = trns_no++;
1279 new->lifetime = lifetime;
1280 new->lifebyte = lifebyte;
1281 new->enctype = types[algclass_isakmp_enc];
1282 new->encklen = encklen;
1283 new->authmethod = types[algclass_isakmp_ameth];
1284 new->hashtype = types[algclass_isakmp_hash];
1285 new->dh_group = types[algclass_isakmp_dh];
1286 new->vendorid = vendorid;
1289 new->gssid = vmalloc(strlen(gssid) + 1);
1290 memcpy(new->gssid->v, gssid, new->gssid->l);
1293 new->gssid = NULL;
1295 insisakmpsa(new, rmconf);