]> git.zerfleddert.de Git - proxmark3-svn/blob - common/mbedtls/certs.h
EVM fixes and additions (RRG repository PRs 78-82 by @merlokk) (#776)
[proxmark3-svn] / common / mbedtls / certs.h
1 /**
2 * \file certs.h
3 *
4 * \brief Sample certificates and DHM parameters for testing
5 */
6 /*
7 * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
8 * SPDX-License-Identifier: GPL-2.0
9 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License as published by
12 * the Free Software Foundation; either version 2 of the License, or
13 * (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU General Public License along
21 * with this program; if not, write to the Free Software Foundation, Inc.,
22 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
23 *
24 * This file is part of mbed TLS (https://tls.mbed.org)
25 */
26 #ifndef MBEDTLS_CERTS_H
27 #define MBEDTLS_CERTS_H
28
29 #include <stddef.h>
30
31 #ifdef __cplusplus
32 extern "C" {
33 #endif
34
35 #if defined(MBEDTLS_PEM_PARSE_C)
36 /* Concatenation of all CA certificates in PEM format if available */
37 extern const char mbedtls_test_cas_pem[];
38 extern const size_t mbedtls_test_cas_pem_len;
39 #endif
40
41 /* List of all CA certificates, terminated by NULL */
42 extern const char * mbedtls_test_cas[];
43 extern const size_t mbedtls_test_cas_len[];
44
45 /*
46 * Convenience for users who just want a certificate:
47 * RSA by default, or ECDSA if RSA is not available
48 */
49 extern const char * mbedtls_test_ca_crt;
50 extern const size_t mbedtls_test_ca_crt_len;
51 extern const char * mbedtls_test_ca_key;
52 extern const size_t mbedtls_test_ca_key_len;
53 extern const char * mbedtls_test_ca_pwd;
54 extern const size_t mbedtls_test_ca_pwd_len;
55 extern const char * mbedtls_test_srv_crt;
56 extern const size_t mbedtls_test_srv_crt_len;
57 extern const char * mbedtls_test_srv_key;
58 extern const size_t mbedtls_test_srv_key_len;
59 extern const char * mbedtls_test_cli_crt;
60 extern const size_t mbedtls_test_cli_crt_len;
61 extern const char * mbedtls_test_cli_key;
62 extern const size_t mbedtls_test_cli_key_len;
63
64 #if defined(MBEDTLS_ECDSA_C)
65 extern const char mbedtls_test_ca_crt_ec[];
66 extern const size_t mbedtls_test_ca_crt_ec_len;
67 extern const char mbedtls_test_ca_key_ec[];
68 extern const size_t mbedtls_test_ca_key_ec_len;
69 extern const char mbedtls_test_ca_pwd_ec[];
70 extern const size_t mbedtls_test_ca_pwd_ec_len;
71 extern const char mbedtls_test_srv_crt_ec[];
72 extern const size_t mbedtls_test_srv_crt_ec_len;
73 extern const char mbedtls_test_srv_key_ec[];
74 extern const size_t mbedtls_test_srv_key_ec_len;
75 extern const char mbedtls_test_cli_crt_ec[];
76 extern const size_t mbedtls_test_cli_crt_ec_len;
77 extern const char mbedtls_test_cli_key_ec[];
78 extern const size_t mbedtls_test_cli_key_ec_len;
79 #endif
80
81 #if defined(MBEDTLS_RSA_C)
82 extern const char mbedtls_test_ca_crt_rsa[];
83 extern const size_t mbedtls_test_ca_crt_rsa_len;
84 extern const char mbedtls_test_ca_key_rsa[];
85 extern const size_t mbedtls_test_ca_key_rsa_len;
86 extern const char mbedtls_test_ca_pwd_rsa[];
87 extern const size_t mbedtls_test_ca_pwd_rsa_len;
88 extern const char mbedtls_test_srv_crt_rsa[];
89 extern const size_t mbedtls_test_srv_crt_rsa_len;
90 extern const char mbedtls_test_srv_key_rsa[];
91 extern const size_t mbedtls_test_srv_key_rsa_len;
92 extern const char mbedtls_test_cli_crt_rsa[];
93 extern const size_t mbedtls_test_cli_crt_rsa_len;
94 extern const char mbedtls_test_cli_key_rsa[];
95 extern const size_t mbedtls_test_cli_key_rsa_len;
96 #endif
97
98 #ifdef __cplusplus
99 }
100 #endif
101
102 #endif /* certs.h */
Impressum, Datenschutz