Lines Matching refs:dir
102 } dir; member
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()
367 BIO_snprintf(ctx->_.dir.search_name, sizeof(ctx->_.dir.search_name), in file_set_ctx_params()
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()
740 if (ctx->_.dir.ctx != NULL) in file_close_dir()
741 OPENSSL_DIR_end(&ctx->_.dir.ctx); in file_close_dir()