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 data->encoder_inst = encoder_inst; in encoder_construct_pkey()
194 if (!evp_keymgmt_export(pk->keymgmt, pk->keydata, data->selection, in encoder_construct_pkey()
195 &encoder_import_cb, data)) in encoder_construct_pkey()
197 data->obj = data->constructed_obj; in encoder_construct_pkey()
199 data->obj = pk->keydata; in encoder_construct_pkey()
203 return data->obj; in encoder_construct_pkey()
208 struct construct_data_st *data = arg; in encoder_destruct_pkey() local
210 if (data->encoder_inst != NULL) { in encoder_destruct_pkey()
212 OSSL_ENCODER_INSTANCE_get_encoder(data->encoder_inst); in encoder_destruct_pkey()
214 encoder->free_object(data->constructed_obj); in encoder_destruct_pkey()
216 data->constructed_obj = NULL; in encoder_destruct_pkey()
230 struct construct_data_st *data = NULL; in ossl_encoder_ctx_setup_for_pkey() local
250 if ((data = OPENSSL_zalloc(sizeof(*data))) == NULL) in ossl_encoder_ctx_setup_for_pkey()
319 if (data != NULL && OSSL_ENCODER_CTX_get_num_encoders(ctx) != 0) { in ossl_encoder_ctx_setup_for_pkey()
321 || !OSSL_ENCODER_CTX_set_construct_data(ctx, data) in ossl_encoder_ctx_setup_for_pkey()
325 data->pk = pkey; in ossl_encoder_ctx_setup_for_pkey()
326 data->selection = selection; in ossl_encoder_ctx_setup_for_pkey()
328 data = NULL; /* Avoid it being freed */ in ossl_encoder_ctx_setup_for_pkey()
333 if (data != NULL) { in ossl_encoder_ctx_setup_for_pkey()
335 OPENSSL_free(data); in ossl_encoder_ctx_setup_for_pkey()