Lines Matching refs:data

89     struct collected_encoder_st *data = arg;  in collect_encoder()  local
92 if (data->error_occurred) in collect_encoder()
95 data->error_occurred = 1; /* Assume the worst */ in collect_encoder()
104 if ((data->keymgmt_prov == prov) == data->flag_find_same_provider) { in collect_encoder()
106 int i, end_i = sk_OPENSSL_CSTRING_num(data->names); in collect_encoder()
110 if (data->flag_find_same_provider) in collect_encoder()
111 match = (data->id_names[i] == encoder->base.id); in collect_encoder()
114 sk_OPENSSL_CSTRING_value(data->names, i)); in collect_encoder()
117 && !encoder->does_selection(provctx, data->ctx->selection)) in collect_encoder()
118 || (data->keymgmt_prov != prov in collect_encoder()
123 if (OSSL_ENCODER_CTX_add_encoder(data->ctx, encoder)) in collect_encoder()
128 data->error_occurred = 0; /* All is good now */ in collect_encoder()
138 struct collected_names_st *data = arg; in collect_name() local
140 if (data->error_occurred) in collect_name()
143 data->error_occurred = 1; /* Assume the worst */ in collect_name()
145 if (sk_OPENSSL_CSTRING_push(data->names, name) <= 0) in collect_name()
148 data->error_occurred = 0; /* All is good now */ in collect_name()
182 struct construct_data_st *data = arg; in encoder_construct_pkey() local
184 if (data->obj == NULL) { in encoder_construct_pkey()
187 const EVP_PKEY *pk = data->pk; in encoder_construct_pkey()
192 int selection = data->selection; in encoder_construct_pkey()
196 data->encoder_inst = encoder_inst; in encoder_construct_pkey()
199 &encoder_import_cb, data)) in encoder_construct_pkey()
201 data->obj = data->constructed_obj; in encoder_construct_pkey()
203 data->obj = pk->keydata; in encoder_construct_pkey()
207 return data->obj; in encoder_construct_pkey()
212 struct construct_data_st *data = arg; in encoder_destruct_pkey() local
214 if (data->encoder_inst != NULL) { in encoder_destruct_pkey()
216 OSSL_ENCODER_INSTANCE_get_encoder(data->encoder_inst); in encoder_destruct_pkey()
218 encoder->free_object(data->constructed_obj); in encoder_destruct_pkey()
220 data->constructed_obj = NULL; in encoder_destruct_pkey()
234 struct construct_data_st *data = NULL; in ossl_encoder_ctx_setup_for_pkey() local
254 if ((data = OPENSSL_zalloc(sizeof(*data))) == NULL) in ossl_encoder_ctx_setup_for_pkey()
323 if (data != NULL && OSSL_ENCODER_CTX_get_num_encoders(ctx) != 0) { in ossl_encoder_ctx_setup_for_pkey()
325 || !OSSL_ENCODER_CTX_set_construct_data(ctx, data) in ossl_encoder_ctx_setup_for_pkey()
329 data->pk = pkey; in ossl_encoder_ctx_setup_for_pkey()
330 data->selection = selection; in ossl_encoder_ctx_setup_for_pkey()
332 data = NULL; /* Avoid it being freed */ in ossl_encoder_ctx_setup_for_pkey()
337 if (data != NULL) { in ossl_encoder_ctx_setup_for_pkey()
339 OPENSSL_free(data); in ossl_encoder_ctx_setup_for_pkey()