1*e0c4386eSCy Schubert /* 2*e0c4386eSCy Schubert * Copyright 2007-2021 The OpenSSL Project Authors. All Rights Reserved. 3*e0c4386eSCy Schubert * Copyright Nokia 2007-2019 4*e0c4386eSCy Schubert * Copyright Siemens AG 2015-2019 5*e0c4386eSCy Schubert * 6*e0c4386eSCy Schubert * Licensed under the Apache License 2.0 (the "License"). You may not use 7*e0c4386eSCy Schubert * this file except in compliance with the License. You can obtain a copy 8*e0c4386eSCy Schubert * in the file LICENSE in the source distribution or at 9*e0c4386eSCy Schubert * https://www.openssl.org/source/license.html 10*e0c4386eSCy Schubert */ 11*e0c4386eSCy Schubert 12*e0c4386eSCy Schubert #ifndef OSSL_TEST_CMP_TESTLIB_H 13*e0c4386eSCy Schubert # define OSSL_TEST_CMP_TESTLIB_H 14*e0c4386eSCy Schubert 15*e0c4386eSCy Schubert # include <openssl/cmp.h> 16*e0c4386eSCy Schubert # include <openssl/pem.h> 17*e0c4386eSCy Schubert # include <openssl/rand.h> 18*e0c4386eSCy Schubert 19*e0c4386eSCy Schubert # include "../../crypto/cmp/cmp_local.h" 20*e0c4386eSCy Schubert # include "../testutil.h" 21*e0c4386eSCy Schubert 22*e0c4386eSCy Schubert # ifndef OPENSSL_NO_CMP 23*e0c4386eSCy Schubert # define CMP_TEST_REFVALUE_LENGTH 15 /* arbitrary value */ 24*e0c4386eSCy Schubert OSSL_CMP_MSG *load_pkimsg(const char *file, OSSL_LIB_CTX *libctx); 25*e0c4386eSCy Schubert int valid_asn1_encoding(const OSSL_CMP_MSG *msg); 26*e0c4386eSCy Schubert int STACK_OF_X509_cmp(const STACK_OF(X509) *sk1, const STACK_OF(X509) *sk2); 27*e0c4386eSCy Schubert int STACK_OF_X509_push1(STACK_OF(X509) *sk, X509 *cert); 28*e0c4386eSCy Schubert int print_to_bio_out(const char *func, const char *file, int line, 29*e0c4386eSCy Schubert OSSL_CMP_severity level, const char *msg); 30*e0c4386eSCy Schubert # endif 31*e0c4386eSCy Schubert 32*e0c4386eSCy Schubert #endif /* OSSL_TEST_CMP_TESTLIB_H */ 33