From 87594884519d786d8122c04cfbd358a7c05d0bb6 Mon Sep 17 00:00:00 2001 From: Neil Horman Date: Tue, 29 Apr 2025 09:27:30 -0400 Subject: [PATCH] Update test/ossl_store_test.c MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Co-authored-by: Viktor Dukhovni Reviewed-by: Saša Nedvědický Reviewed-by: Viktor Dukhovni (Merged from https://github.com/openssl/openssl/pull/27393) (cherry picked from commit 934086fb9161e2f4967ad8577a1f3e489cff73d2) --- test/ossl_store_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/ossl_store_test.c b/test/ossl_store_test.c index ab480419e15..ad88d97a4a0 100644 --- a/test/ossl_store_test.c +++ b/test/ossl_store_test.c @@ -111,7 +111,7 @@ static int test_store_open_winstore(void) * subject name, as winstore only allows searches by that method */ ret = TEST_ptr(testcert = d2i_X509(NULL, &certptr, TEST_CERT_LEN)) - && TEST_ptr(search = OSSL_STORE_SEARCH_by_name(X509_get_subject_name(testcert))) + && TEST_ptr(search = OSSL_STORE_SEARCH_by_name(X509_get_issuer_name(testcert))) && TEST_ptr(ui_method = UI_create_method("DummyUI")) && TEST_ptr(sctx = OSSL_STORE_open_ex("org.openssl.winstore:", NULL, NULL, ui_method, NULL, NULL, -- 2.47.2