Commit a66d74c8c1 for openssl.org
commit a66d74c8c18ed54ad9c95617959cc0b32e508398
Author: Neil Horman <nhorman@openssl.org>
Date: Tue Jun 30 12:56:46 2026 -0400
add support to p_ossltest for non-cacheable fetches
Add the ability to direct p_ossltest to request no caching so that we
can test the provider driver non-cache code path.
Reviewed-by: Milan Broz <mbroz@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
MergeDate: Thu Jul 2 14:24:15 2026
(Merged from https://github.com/openssl/openssl/pull/31782)
diff --git a/test/p_ossltest.c b/test/p_ossltest.c
index 6d775520ba..7864994485 100644
--- a/test/p_ossltest.c
+++ b/test/p_ossltest.c
@@ -1766,6 +1766,10 @@ static const OSSL_ALGORITHM *ossltest_query(void *provctx, int operation_id,
int *no_cache)
{
*no_cache = 0;
+
+ if (getenv("OSSL_TEST_PROVIDER_NO_CACHE") != NULL)
+ *no_cache = 1;
+
switch (operation_id) {
case OSSL_OP_DIGEST:
return ossltest_digests;