]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Don't incorrectly skip the multiblock test
authorMatt Caswell <matt@openssl.org>
Thu, 11 Aug 2022 11:02:44 +0000 (12:02 +0100)
committerHugo Landau <hlandau@openssl.org>
Wed, 17 Aug 2022 15:46:33 +0000 (16:46 +0100)
sslapitest has a test for multiblock writes. Since multiblock writing is
only available on some platforms the multiblock test checks whether we are
on such a platform first, and skips the test if we are not. Unfortunately
a bug in the check meant that we always skipped the test regardless of the
platform.

Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/18983)

test/sslapitest.c

index bf2e75c72495c55a656dc1c3c9cf1078f26567f8..3f8cbd9da288a4f247947e83790ae4909fcdc7bb 100644 (file)
@@ -8470,7 +8470,7 @@ static int test_multiblock_write(int test_index)
      * Check if the cipher exists before attempting to use it since it only has
      * a hardware specific implementation.
      */
-    ciph = EVP_CIPHER_fetch(NULL, fetchable_ciphers[test_index], "");
+    ciph = EVP_CIPHER_fetch(libctx, fetchable_ciphers[test_index], "");
     if (ciph == NULL) {
         TEST_skip("Multiblock cipher is not available for %s", cipherlist);
         return 1;