From 931d6a52271fc1f7b6583b3ab169132ea702d7b6 Mon Sep 17 00:00:00 2001 From: "Dr. David von Oheimb" Date: Mon, 14 Oct 2024 20:14:33 +0200 Subject: [PATCH] X509_LOOKUP_add_store_ex(): fix bug not handling file: URI prefix as documented for s_client --- crypto/x509/by_store.c | 1 + 1 file changed, 1 insertion(+) diff --git a/crypto/x509/by_store.c b/crypto/x509/by_store.c index 9ba5b31a441e9..19954db2cf337 100644 --- a/crypto/x509/by_store.c +++ b/crypto/x509/by_store.c @@ -112,6 +112,7 @@ static int by_store_ctrl_ex(X509_LOOKUP *ctx, int cmd, const char *argp, switch (cmd) { case X509_L_ADD_STORE: if (argp != NULL) { + CHECK_AND_SKIP_CASE_PREFIX(argp, "file:"); STACK_OF(OPENSSL_STRING) *uris = X509_LOOKUP_get_method_data(ctx); char *data = OPENSSL_strdup(argp);