mirror of
https://github.com/openssl/openssl.git
synced 2025-02-17 14:32:04 +08:00
35 lines
1.0 KiB
C
35 lines
1.0 KiB
C
|
/*
|
||
|
* Copyright 2007-2019 The OpenSSL Project Authors. All Rights Reserved.
|
||
|
* Copyright Nokia 2007-2019
|
||
|
* Copyright Siemens AG 2015-2019
|
||
|
*
|
||
|
* Licensed under the Apache License 2.0 (the "License"). You may not use
|
||
|
* this file except in compliance with the License. You can obtain a copy
|
||
|
* in the file LICENSE in the source distribution or at
|
||
|
* https://www.openssl.org/source/license.html
|
||
|
*/
|
||
|
|
||
|
#ifndef HEADER_CMP_TEST_LIB_H
|
||
|
# define HEADER_CMP_TEST_LIB_H
|
||
|
|
||
|
# include <openssl/cmp.h>
|
||
|
# include <openssl/pem.h>
|
||
|
# include <openssl/rand.h>
|
||
|
|
||
|
#include "../crypto/cmp/cmp_int.h"
|
||
|
|
||
|
# include "testutil.h"
|
||
|
|
||
|
# ifndef OPENSSL_NO_CMP
|
||
|
# define CMP_TEST_REFVALUE_LENGTH 15 /* arbitrary value */
|
||
|
EVP_PKEY *load_pem_key(const char *file);
|
||
|
X509 *load_pem_cert(const char *file);
|
||
|
X509_REQ *load_csr(const char *file);
|
||
|
int valid_asn1_encoding(const OSSL_CMP_MSG *msg);
|
||
|
EVP_PKEY *gen_rsa(void);
|
||
|
int STACK_OF_X509_cmp(const STACK_OF(X509) *sk1, const STACK_OF(X509) *sk2);
|
||
|
int STACK_OF_X509_push1(STACK_OF(X509) *sk, X509 *cert);
|
||
|
# endif
|
||
|
|
||
|
#endif /* HEADER_CMP_TEST_LIB_H */
|