Lines Matching defs:file

5  * this file except in compliance with the License.  You can obtain a copy
6 * in the file LICENSE in the source distribution or at
12 /* This file has quite some overlap with providers/implementations/storemgmt/file_store.c */
153 * EMBEDDED is a special type of OSSL_STORE_INFO, specially for the file
217 * The file scheme decoders
231 * pem_name: If this blob comes from a PEM file, this holds
233 * file, this is NULL.
234 * pem_header: If this blob comes from a PEM file, this holds
236 * file, this is NULL.
875 BIO *file;
883 } file;
890 * |search_name| contains the file basename to look for.
920 if (ctx->_.file.last_handler != NULL) {
921 ctx->_.file.last_handler->destroy_ctx(&ctx->_.file.last_handler_ctx);
922 ctx->_.file.last_handler_ctx = NULL;
923 ctx->_.file.last_handler = NULL;
937 ctx->_.file.file = BIO_push(buff, ctx->_.file.file);
938 if (BIO_buffer_peek(ctx->_.file.file, peekbuf, sizeof(peekbuf) - 1) > 0) {
967 * Second step, if the URI appears to start with the 'file' scheme,
972 if (OPENSSL_strncasecmp(uri, "file:", 5) == 0) {
989 /* Windows file: URIs with a drive letter start with a / */
1006 * If the scheme "file" was an explicit part of the URI, the path must
1051 } else if ((ctx->_.file.file = BIO_new_file(path, "rb")) == NULL
1053 BIO_free_all(ctx->_.file.file);
1093 ctx->_.file.file = bp;
1096 ctx->_.file.file = NULL;
1239 if (result == NULL) /* e.g., PKCS#12 file decryption error */
1246 ctx->_.file.last_handler = matching_handlers[0];
1247 ctx->_.file.last_handler_ctx = handler_ctx;
1284 if (ctx->_.file.last_handler != NULL) {
1286 ctx->_.file.last_handler->try_decode(NULL, NULL, NULL, 0,
1287 &ctx->_.file.last_handler_ctx,
1293 ctx->_.file.last_handler->destroy_ctx(&ctx->_.file.last_handler_ctx);
1294 ctx->_.file.last_handler_ctx = NULL;
1295 ctx->_.file.last_handler = NULL;
1506 * found a fitting file name.
1576 if (!file_read_pem(ctx->_.file.file, &pem_name, &pem_header,
1583 if ((result = file_try_read_msblob(ctx->_.file.file,
1585 || (result = file_try_read_PVK(ctx->_.file.file,
1590 if (!file_read_asn1(ctx->_.file.file, &data, &len)) {
1660 if (ctx->_.file.last_handler != NULL
1661 && !ctx->_.file.last_handler->eof(ctx->_.file.last_handler_ctx))
1663 return BIO_eof(ctx->_.file.file);
1672 BIO_free_all(ctx->_.file.file);
1678 BIO *buff = ctx->_.file.file;
1681 (void)BIO_pop(ctx->_.file.file);
1683 ctx->_.file.file = NULL;
1696 static const char *loader_attic_name = "'file:' loader";
1714 OSSL_STORE_LOADER *loader = OSSL_STORE_unregister_loader("file");
1731 (loader_attic = OSSL_STORE_LOADER_new(e, "file")) == NULL