OPTIGA Trust M  1.1.0
C++ library for Optiga Trust M Chip Security Controller
certs.h
Go to the documentation of this file.
1 
6 /*
7  * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
8  * SPDX-License-Identifier: Apache-2.0
9  *
10  * Licensed under the Apache License, Version 2.0 (the "License"); you may
11  * not use this file except in compliance with the License.
12  * You may obtain a copy of the License at
13  *
14  * http://www.apache.org/licenses/LICENSE-2.0
15  *
16  * Unless required by applicable law or agreed to in writing, software
17  * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
18  * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19  * See the License for the specific language governing permissions and
20  * limitations under the License.
21  *
22  * This file is part of mbed TLS (https://tls.mbed.org)
23  */
24 #ifndef MBEDTLS_CERTS_H
25 #define MBEDTLS_CERTS_H
26 
27 #include <stddef.h>
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
33 #if defined(MBEDTLS_PEM_PARSE_C)
34 /* Concatenation of all CA certificates in PEM format if available */
35 extern const char mbedtls_test_cas_pem[];
36 extern const size_t mbedtls_test_cas_pem_len;
37 #endif
38 
39 /* List of all CA certificates, terminated by NULL */
40 extern const char * mbedtls_test_cas[];
41 extern const size_t mbedtls_test_cas_len[];
42 
43 /*
44  * Convenience for users who just want a certificate:
45  * RSA by default, or ECDSA if RSA is not available
46  */
47 extern const char * mbedtls_test_ca_crt;
48 extern const size_t mbedtls_test_ca_crt_len;
49 extern const char * mbedtls_test_ca_key;
50 extern const size_t mbedtls_test_ca_key_len;
51 extern const char * mbedtls_test_ca_pwd;
52 extern const size_t mbedtls_test_ca_pwd_len;
53 extern const char * mbedtls_test_srv_crt;
54 extern const size_t mbedtls_test_srv_crt_len;
55 extern const char * mbedtls_test_srv_key;
56 extern const size_t mbedtls_test_srv_key_len;
57 extern const char * mbedtls_test_cli_crt;
58 extern const size_t mbedtls_test_cli_crt_len;
59 extern const char * mbedtls_test_cli_key;
60 extern const size_t mbedtls_test_cli_key_len;
61 
62 #if defined(MBEDTLS_ECDSA_C)
63 extern const char mbedtls_test_ca_crt_ec[];
64 extern const size_t mbedtls_test_ca_crt_ec_len;
65 extern const char mbedtls_test_ca_key_ec[];
66 extern const size_t mbedtls_test_ca_key_ec_len;
67 extern const char mbedtls_test_ca_pwd_ec[];
68 extern const size_t mbedtls_test_ca_pwd_ec_len;
69 extern const char mbedtls_test_srv_crt_ec[];
70 extern const size_t mbedtls_test_srv_crt_ec_len;
71 extern const char mbedtls_test_srv_key_ec[];
72 extern const size_t mbedtls_test_srv_key_ec_len;
73 extern const char mbedtls_test_cli_crt_ec[];
74 extern const size_t mbedtls_test_cli_crt_ec_len;
75 extern const char mbedtls_test_cli_key_ec[];
76 extern const size_t mbedtls_test_cli_key_ec_len;
77 #endif
78 
79 #if defined(MBEDTLS_RSA_C)
80 extern const char mbedtls_test_ca_crt_rsa[];
81 extern const size_t mbedtls_test_ca_crt_rsa_len;
82 extern const char mbedtls_test_ca_key_rsa[];
83 extern const size_t mbedtls_test_ca_key_rsa_len;
84 extern const char mbedtls_test_ca_pwd_rsa[];
85 extern const size_t mbedtls_test_ca_pwd_rsa_len;
86 extern const char mbedtls_test_srv_crt_rsa[];
87 extern const size_t mbedtls_test_srv_crt_rsa_len;
88 extern const char mbedtls_test_srv_key_rsa[];
89 extern const size_t mbedtls_test_srv_key_rsa_len;
90 extern const char mbedtls_test_cli_crt_rsa[];
91 extern const size_t mbedtls_test_cli_crt_rsa_len;
92 extern const char mbedtls_test_cli_key_rsa[];
93 extern const size_t mbedtls_test_cli_key_rsa_len;
94 #endif
95 
96 #ifdef __cplusplus
97 }
98 #endif
99 
100 #endif /* certs.h */
const char * mbedtls_test_cli_key
const char * mbedtls_test_cli_crt
const size_t mbedtls_test_cli_key_len
const size_t mbedtls_test_cas_len[]
const char * mbedtls_test_srv_crt
const char * mbedtls_test_ca_key
const char * mbedtls_test_srv_key
const size_t mbedtls_test_cli_crt_len
const char * mbedtls_test_cas[]
const char * mbedtls_test_ca_pwd
const size_t mbedtls_test_srv_crt_len
const size_t mbedtls_test_srv_key_len
const size_t mbedtls_test_ca_pwd_len
const size_t mbedtls_test_ca_crt_len
const size_t mbedtls_test_ca_key_len
const char * mbedtls_test_ca_crt