From: Neil Horman Date: Tue, 29 Apr 2025 13:27:30 +0000 (-0400) Subject: Update test/ossl_store_test.c X-Git-Tag: openssl-3.5.1~131 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=87594884519d786d8122c04cfbd358a7c05d0bb6;p=thirdparty%2Fopenssl.git Update test/ossl_store_test.c 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) --- 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,