From f642ea1bc58035de16945af8645a4d0de11d2cf5 Mon Sep 17 00:00:00 2001 From: Iouri Kharon Date: Sat, 20 Apr 2024 03:05:32 +0300 Subject: [PATCH] OSSL_STORE: Windows: use system certificates storage as default store --- crypto/x509/by_store.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crypto/x509/by_store.c b/crypto/x509/by_store.c index 7cc622ef798c6..0a22fb9f2a2da 100644 --- a/crypto/x509/by_store.c +++ b/crypto/x509/by_store.c @@ -111,6 +111,10 @@ static int by_store_ctrl_ex(X509_LOOKUP *ctx, int cmd, const char *argp, { switch (cmd) { case X509_L_ADD_STORE: +#ifdef _WIN32 + if (argp == NULL) + argp = "org.openssl.winstore://"; +#endif if (argp != NULL) { STACK_OF(OPENSSL_STRING) *uris = X509_LOOKUP_get_method_data(ctx); char *data = OPENSSL_strdup(argp);