]>
git.ipfire.org Git - thirdparty/openssl.git/blob - test/cmp_testlib.h
2 * Copyright 2007-2019 The OpenSSL Project Authors. All Rights Reserved.
3 * Copyright Nokia 2007-2019
4 * Copyright Siemens AG 2015-2019
6 * Licensed under the Apache License 2.0 (the "License"). You may not use
7 * this file except in compliance with the License. You can obtain a copy
8 * in the file LICENSE in the source distribution or at
9 * https://www.openssl.org/source/license.html
12 #ifndef HEADER_CMP_TEST_LIB_H
13 # define HEADER_CMP_TEST_LIB_H
15 # include <openssl/cmp.h>
16 # include <openssl/pem.h>
17 # include <openssl/rand.h>
19 #include "../crypto/cmp/cmp_int.h"
21 # include "testutil.h"
23 # ifndef OPENSSL_NO_CMP
24 # define CMP_TEST_REFVALUE_LENGTH 15 /* arbitrary value */
25 EVP_PKEY
*load_pem_key(const char *file
);
26 X509
*load_pem_cert(const char *file
);
27 X509_REQ
*load_csr(const char *file
);
28 int valid_asn1_encoding(const OSSL_CMP_MSG
*msg
);
29 EVP_PKEY
*gen_rsa(void);
30 int STACK_OF_X509_cmp(const STACK_OF(X509
) *sk1
, const STACK_OF(X509
) *sk2
);
31 int STACK_OF_X509_push1(STACK_OF(X509
) *sk
, X509
*cert
);
34 #endif /* HEADER_CMP_TEST_LIB_H */