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