]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Update test/ossl_store_test.c
authorNeil Horman <nhorman@openssl.org>
Tue, 29 Apr 2025 13:27:30 +0000 (09:27 -0400)
committerNeil Horman <nhorman@openssl.org>
Wed, 30 Apr 2025 17:09:35 +0000 (13:09 -0400)
Co-authored-by: Viktor Dukhovni <viktor1ghub@dukhovni.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/27393)

test/ossl_store_test.c

index ab480419e15d7e57f6ebc12878442108d80a849d..ad88d97a4a04877422fc07d8a5c6935773ee4fec 100644 (file)
@@ -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,