Skip to content

Commit

Permalink
OSSL_STORE: Windows: use system certificates storage as default store
Browse files Browse the repository at this point in the history
  • Loading branch information
yjh-styx committed Apr 26, 2024
1 parent 933f57d commit f642ea1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crypto/x509/by_store.c
Expand Up @@ -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);
Expand Down

0 comments on commit f642ea1

Please sign in to comment.