Lines Matching refs:orig
666 duplicate_intarr(int *orig)
669 int *iwalker = orig;
671 if (orig == NULL)
681 (void) memcpy(iwalker, orig, allocsize);
690 duplicate_strarr(char **orig)
696 if (orig == NULL)
700 for (swalker = orig; *swalker != NULL; swalker++)
704 newbie = calloc(swalker - orig + 1, sizeof (char *));
708 for (i = 0; orig[i] != NULL; i++) {
709 newbie[i] = strdup(orig[i]);
724 _duplicate_alg(struct ipsecalgent *orig)
733 rc->a_proto_num = orig->a_proto_num;
734 rc->a_alg_num = orig->a_alg_num;
735 rc->a_key_increment = orig->a_key_increment;
736 rc->a_mech_name = strdup(orig->a_mech_name);
737 rc->a_alg_flags = orig->a_alg_flags;
738 rc->a_block_sizes = duplicate_intarr(orig->a_block_sizes);
739 rc->a_mech_params = duplicate_intarr(orig->a_mech_params);
740 rc->a_key_sizes = duplicate_intarr(orig->a_key_sizes);
741 rc->a_names = duplicate_strarr(orig->a_names);