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