add missing load_pkimsg() in test/cmp_testlib.c

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/10633)
This commit is contained in:
Dr. David von Oheimb 2019-12-17 06:07:51 +01:00 committed by Tomas Mraz
parent bce58e7fcb
commit 9b2ffec6a0
2 changed files with 9 additions and 0 deletions

View File

@ -40,6 +40,14 @@ X509 *load_pem_cert(const char *file)
return cert; 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 *load_csr(const char *file)
{ {
X509_REQ *csr = NULL; X509_REQ *csr = NULL;

View File

@ -25,6 +25,7 @@
EVP_PKEY *load_pem_key(const char *file); EVP_PKEY *load_pem_key(const char *file);
X509 *load_pem_cert(const char *file); X509 *load_pem_cert(const char *file);
X509_REQ *load_csr(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); int valid_asn1_encoding(const OSSL_CMP_MSG *msg);
EVP_PKEY *gen_rsa(void); EVP_PKEY *gen_rsa(void);
int STACK_OF_X509_cmp(const STACK_OF(X509) *sk1, const STACK_OF(X509) *sk2); int STACK_OF_X509_cmp(const STACK_OF(X509) *sk1, const STACK_OF(X509) *sk2);