Lines Matching refs:curalg
198 struct ipsecalgent *curalg, **newalglist; in build_list() local
453 curalg = (struct ipsecalgent *)calloc( in build_list()
455 if (curalg == NULL) { in build_list()
458 curalg->a_proto_num = new_num; in build_list()
459 curalg->a_alg_num = alg_num; in build_list()
460 curalg->a_block_sizes = block_sizes; in build_list()
461 curalg->a_alg_flags = flags; in build_list()
462 curalg->a_mech_params = mech_params; in build_list()
463 curalg->a_key_sizes = key_sizes; in build_list()
464 curalg->a_key_increment = key_increment; in build_list()
465 if ((curalg->a_mech_name = strdup(ef_name)) == NULL) { in build_list()
466 freeipsecalgent(curalg); in build_list()
470 curalg->a_names = (char **)malloc(sizeof (char *)); in build_list()
473 if (curalg->a_names == NULL || token == NULL) { in build_list()
474 freeipsecalgent(curalg); in build_list()
480 nnames = (char **)realloc(curalg->a_names, in build_list()
483 freeipsecalgent(curalg); in build_list()
486 curalg->a_names = nnames; in build_list()
487 curalg->a_names[num_sizes] = NULL; in build_list()
488 curalg->a_names[num_sizes - 1] = in build_list()
490 if (curalg->a_names[num_sizes - 1] == NULL) { in build_list()
491 freeipsecalgent(curalg); in build_list()
508 curalg->a_alg_num; in build_list()
523 freeipsecalgent(curalg); in build_list()
526 newalglist[new_proto->proto_numalgs] = curalg; in build_list()