summaryrefslogtreecommitdiffstats
path: root/test/helpers/cmp_testlib.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2021-05-26 17:18:13 +0100
committerPauli <pauli@openssl.org>2021-06-05 17:39:10 +1000
commitc6313780586f94b0542f55c3ffa399f5ad2c7297 (patch)
tree4ee7a22fbbe0e507a1b974b5e2e45778836fed09 /test/helpers/cmp_testlib.c
parent5dca2afca3f5de55f3de3a404ede1a96c6d9af26 (diff)
Use the new ASN.1 libctx aware capabilities in CMP
Make sure we pass the libctx/propq around everywhere that we need it to ensure we get provider keys when needed. Reviewed-by: Shane Lontis <shane.lontis@oracle.com> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/15591)
Diffstat (limited to 'test/helpers/cmp_testlib.c')
-rw-r--r--test/helpers/cmp_testlib.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/helpers/cmp_testlib.c b/test/helpers/cmp_testlib.c
index 2d7297c42b..e0fb1d3d34 100644
--- a/test/helpers/cmp_testlib.c
+++ b/test/helpers/cmp_testlib.c
@@ -12,11 +12,11 @@
#include "cmp_testlib.h"
#include <openssl/rsa.h> /* needed in case config no-deprecated */
-OSSL_CMP_MSG *load_pkimsg(const char *file)
+OSSL_CMP_MSG *load_pkimsg(const char *file, OSSL_LIB_CTX *libctx)
{
OSSL_CMP_MSG *msg;
- (void)TEST_ptr((msg = OSSL_CMP_MSG_read(file)));
+ (void)TEST_ptr((msg = OSSL_CMP_MSG_read(file, libctx, NULL)));
return msg;
}