From: Dr. David von Oheimb Date: Tue, 17 Dec 2019 05:07:51 +0000 (+0100) Subject: add missing load_pkimsg() in test/cmp_testlib.c X-Git-Tag: openssl-3.0.0-alpha1~719 X-Git-Url: https://git.openssl.org/gitweb/?p=openssl.git;a=commitdiff_plain;h=9b2ffec6a00fb6c7ec9f8f5c9b499e4711195c75 add missing load_pkimsg() in test/cmp_testlib.c Reviewed-by: Shane Lontis Reviewed-by: Matt Caswell Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/10633) --- diff --git a/test/cmp_testlib.c b/test/cmp_testlib.c index d632424272..6c696eafaa 100644 --- a/test/cmp_testlib.c +++ b/test/cmp_testlib.c @@ -40,6 +40,14 @@ X509 *load_pem_cert(const char *file) return cert; } +OSSL_CMP_MSG *load_pkimsg(const char *file) +{ + OSSL_CMP_MSG *msg; + + (void)TEST_ptr((msg = ossl_cmp_msg_load(file))); + return msg; +} + X509_REQ *load_csr(const char *file) { X509_REQ *csr = NULL; diff --git a/test/cmp_testlib.h b/test/cmp_testlib.h index 96b577e46e..f1bc55c118 100644 --- a/test/cmp_testlib.h +++ b/test/cmp_testlib.h @@ -25,6 +25,7 @@ EVP_PKEY *load_pem_key(const char *file); X509 *load_pem_cert(const char *file); X509_REQ *load_csr(const char *file); +OSSL_CMP_MSG *load_pkimsg(const char *file); int valid_asn1_encoding(const OSSL_CMP_MSG *msg); EVP_PKEY *gen_rsa(void); int STACK_OF_X509_cmp(const STACK_OF(X509) *sk1, const STACK_OF(X509) *sk2);