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