Lines Matching refs:data

48     struct decoder_process_data_st data;
74 memset(&data, 0, sizeof(data));
75 data.ctx = ctx;
76 data.bio = in;
81 ok = decoder_process(NULL, &data);
83 if (!data.flag_construct_called) {
102 "No supported data to decode. %s%s%s%s%s%s",
368 struct collect_extra_decoder_data_st *data = arg;
373 if (OSSL_DECODER_is_a(decoder, data->output_type)) {
381 (void *)data->ctx, data->type_check, (void *)decoder,
391 for (j = data->w_prev_start; j < data->w_new_end; j++) {
393 sk_OSSL_DECODER_INSTANCE_value(data->ctx->decoder_insts, j);
413 switch (data->type_check) {
444 if (!ossl_decoder_ctx_add_decoder_inst(data->ctx, di)) {
449 data->w_new_end++;
479 struct collect_extra_decoder_data_st data;
511 memset(&data, 0, sizeof(data));
512 data.ctx = ctx;
513 data.w_prev_start = 0;
514 data.w_prev_end = sk_OSSL_DECODER_INSTANCE_num(ctx->decoder_insts);
518 data.w_new_start = data.w_new_end = data.w_prev_end;
523 * This allows for decoders that unwrap some data in a specific
527 for (data.type_check = IS_SAME;
528 data.type_check <= IS_DIFFERENT;
529 data.type_check++) {
530 for (i = data.w_prev_start; i < data.w_prev_end; i++) {
534 data.output_type
540 &data);
544 count = data.w_new_end - data.w_new_start;
547 data.w_prev_start = data.w_new_start;
548 data.w_prev_end = data.w_new_end;
677 struct decoder_process_data_st *data = arg;
678 OSSL_DECODER_CTX *ctx = data->ctx;
682 BIO *bio = data->bio;
695 data->flag_next_level_called = 1;
698 new_data.ctx = data->ctx;
699 new_data.recursion = data->recursion + 1;
715 data->current_decoder_inst_index =
718 bio = data->bio;
725 data->current_decoder_inst_index);
728 data->flag_construct_called = 0;
746 data->flag_construct_called = 1;
758 * If this data isn't present, decoding has failed.
764 new_data.bio = BIO_new_mem_buf(p->data, (int)p->data_size);
769 /* Get the data type if there is one */
774 /* Get the data structure if there is one */
780 * If the data structure is "type-specific" and the data type is
781 * given, we drop the data structure. The reasoning is that the
782 * data type is already enough to find the applicable next decoder,
783 * so an additional "type-specific" data structure is extraneous.
787 * if the data structure we just received is "type-specific".
799 " data type: %s, data structure: %s%s\n",
811 if (data->current_decoder_inst_index == 0)
824 for (i = data->current_decoder_inst_index; i-- > 0;) {
881 * If the previous decoder gave us a data type, we check to see
887 "(ctx %p) %s [%u] the previous decoder's data type doesn't match the name of the considered decoder, skipping...\n",
894 * If the previous decoder gave us a data structure name, we check
895 * to see that it matches the input data structure of the decoder
904 "(ctx %p) %s [%u] the previous decoder's data structure doesn't match the input structure of the considered decoder, skipping...\n",
916 if (!data->flag_input_structure_checked
919 data->flag_input_structure_checked = 1;
924 "(ctx %p) %s [%u] the previous decoder's data structure doesn't match the input structure given by the user, skipping...\n",
961 = data->flag_input_structure_checked;
978 data->flag_construct_called = new_data.flag_construct_called;
981 if (!ok || data->flag_construct_called) {