Lines Matching refs:_
103 } _; member
116 OSSL_DECODER_CTX_free(ctx->_.file.decoderctx); in free_file_ctx()
117 OPENSSL_free(ctx->_.file.propq); in free_file_ctx()
118 OPENSSL_free(ctx->_.file.input_type); in free_file_ctx()
161 ctx->_.file.file = source; in file_open_stream()
178 ctx->_.dir.last_entry = OPENSSL_DIR_read(&ctx->_.dir.ctx, path); in file_open_dir()
179 ctx->_.dir.last_errno = errno; in file_open_dir()
180 if (ctx->_.dir.last_entry == NULL) { in file_open_dir()
181 if (ctx->_.dir.last_errno != 0) { in file_open_dir()
182 ERR_raise_data(ERR_LIB_SYS, ctx->_.dir.last_errno, in file_open_dir()
186 ctx->_.dir.end_reached = 1; in file_open_dir()
331 OPENSSL_free(ctx->_.file.propq); in file_set_ctx_params()
332 ctx->_.file.propq = NULL; in file_set_ctx_params()
333 if (!OSSL_PARAM_get_utf8_string(p, &ctx->_.file.propq, 0)) in file_set_ctx_params()
338 OPENSSL_free(ctx->_.file.input_type); in file_set_ctx_params()
339 ctx->_.file.input_type = NULL; in file_set_ctx_params()
340 if (!OSSL_PARAM_get_utf8_string(p, &ctx->_.file.input_type, 0)) in file_set_ctx_params()
367 BIO_snprintf(ctx->_.dir.search_name, sizeof(ctx->_.dir.search_name), in file_set_ctx_params()
422 if (ctx->_.file.decoderctx == NULL) { in file_setup_decoders()
423 if ((ctx->_.file.decoderctx = OSSL_DECODER_CTX_new()) == NULL) { in file_setup_decoders()
429 if (!OSSL_DECODER_CTX_set_input_type(ctx->_.file.decoderctx, in file_setup_decoders()
430 ctx->_.file.input_type)) { in file_setup_decoders()
443 if (!OSSL_DECODER_CTX_set_input_structure(ctx->_.file.decoderctx, in file_setup_decoders()
450 if (!OSSL_DECODER_CTX_set_input_structure(ctx->_.file.decoderctx, in file_setup_decoders()
479 if (!ossl_decoder_ctx_add_decoder_inst(ctx->_.file.decoderctx, in file_setup_decoders()
487 if (!OSSL_DECODER_CTX_add_extra(ctx->_.file.decoderctx, in file_setup_decoders()
488 libctx, ctx->_.file.propq)) { in file_setup_decoders()
497 if (!OSSL_DECODER_CTX_set_construct(ctx->_.file.decoderctx, in file_setup_decoders()
499 || !OSSL_DECODER_CTX_set_cleanup(ctx->_.file.decoderctx, in file_setup_decoders()
527 OSSL_DECODER_CTX_set_construct_data(ctx->_.file.decoderctx, &data); in file_load_file()
528 OSSL_DECODER_CTX_set_passphrase_cb(ctx->_.file.decoderctx, pw_cb, pw_cbarg); in file_load_file()
533 ret = OSSL_DECODER_from_bio(ctx->_.file.decoderctx, ctx->_.file.file); in file_load_file()
534 if (BIO_eof(ctx->_.file.file) in file_load_file()
573 size_t len = strlen(ctx->_.dir.search_name); in file_name_check()
576 if (ctx->_.dir.search_name[0] == '\0') in file_name_check()
588 if (OPENSSL_strncasecmp(name, ctx->_.dir.search_name, len) != 0 in file_name_check()
648 if (ctx->_.dir.last_entry == NULL) { in file_load_dir_entry()
649 if (!ctx->_.dir.end_reached) { in file_load_dir_entry()
650 assert(ctx->_.dir.last_errno != 0); in file_load_dir_entry()
651 ERR_raise(ERR_LIB_SYS, ctx->_.dir.last_errno); in file_load_dir_entry()
658 if (ctx->_.dir.last_entry[0] != '.' in file_load_dir_entry()
659 && file_name_check(ctx, ctx->_.dir.last_entry)) { in file_load_dir_entry()
663 file_name_to_uri(ctx, ctx->_.dir.last_entry)) == NULL) in file_load_dir_entry()
673 ctx->_.dir.last_entry = OPENSSL_DIR_read(&ctx->_.dir.ctx, ctx->uri); in file_load_dir_entry()
674 ctx->_.dir.last_errno = errno; in file_load_dir_entry()
675 if (ctx->_.dir.last_entry == NULL && ctx->_.dir.last_errno == 0) in file_load_dir_entry()
676 ctx->_.dir.end_reached = 1; in file_load_dir_entry()
723 return ctx->_.dir.end_reached; in file_eof()
729 return !BIO_pending(ctx->_.file.file) in file_eof()
730 && BIO_eof(ctx->_.file.file); in file_eof()
740 if (ctx->_.dir.ctx != NULL) in file_close_dir()
741 OPENSSL_DIR_end(&ctx->_.dir.ctx); in file_close_dir()
752 BIO_free(ctx->_.file.file); in file_close_stream()
753 ctx->_.file.file = NULL; in file_close_stream()