Lines Matching refs:newopts
137 pkinit_identity_opts *newopts; in pkinit_dup_identity_opts() local
141 retval = pkinit_init_identity_opts(&newopts); in pkinit_dup_identity_opts()
148 newopts->identity = strdup(src_opts->identity); in pkinit_dup_identity_opts()
149 if (newopts->identity == NULL) in pkinit_dup_identity_opts()
153 retval = copy_list(&newopts->anchors, src_opts->anchors); in pkinit_dup_identity_opts()
157 retval = copy_list(&newopts->intermediates,src_opts->intermediates); in pkinit_dup_identity_opts()
161 retval = copy_list(&newopts->crls, src_opts->crls); in pkinit_dup_identity_opts()
166 newopts->cert_filename = strdup(src_opts->cert_filename); in pkinit_dup_identity_opts()
167 if (newopts->cert_filename == NULL) in pkinit_dup_identity_opts()
172 newopts->key_filename = strdup(src_opts->key_filename); in pkinit_dup_identity_opts()
173 if (newopts->key_filename == NULL) in pkinit_dup_identity_opts()
179 newopts->p11_module_name = strdup(src_opts->p11_module_name); in pkinit_dup_identity_opts()
180 if (newopts->p11_module_name == NULL) in pkinit_dup_identity_opts()
184 newopts->slotid = src_opts->slotid; in pkinit_dup_identity_opts()
187 newopts->token_label = strdup(src_opts->token_label); in pkinit_dup_identity_opts()
188 if (newopts->token_label == NULL) in pkinit_dup_identity_opts()
193 newopts->cert_id_string = strdup(src_opts->cert_id_string); in pkinit_dup_identity_opts()
194 if (newopts->cert_id_string == NULL) in pkinit_dup_identity_opts()
199 newopts->cert_label = strdup(src_opts->cert_label); in pkinit_dup_identity_opts()
200 if (newopts->cert_label == NULL) in pkinit_dup_identity_opts()
206 *dest_opts = newopts; in pkinit_dup_identity_opts()
209 pkinit_fini_identity_opts(newopts); in pkinit_dup_identity_opts()