RetroArch
certs.h
Go to the documentation of this file.
1 
23 #ifndef MBEDTLS_CERTS_H
24 #define MBEDTLS_CERTS_H
25 
26 #include <stddef.h>
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
32 #if defined(MBEDTLS_PEM_PARSE_C)
33 /* Concatenation of all CA certificates in PEM format if available */
34 extern const char mbedtls_test_cas_pem[];
35 extern const size_t mbedtls_test_cas_pem_len;
36 #endif
37 
38 /* List of all CA certificates, terminated by NULL */
39 extern const char * mbedtls_test_cas[];
40 extern const size_t mbedtls_test_cas_len[];
41 
42 /*
43  * Convenience for users who just want a certificate:
44  * RSA by default, or ECDSA if RSA is not available
45  */
46 extern const char * mbedtls_test_ca_crt;
47 extern const size_t mbedtls_test_ca_crt_len;
48 extern const char * mbedtls_test_ca_key;
49 extern const size_t mbedtls_test_ca_key_len;
50 extern const char * mbedtls_test_ca_pwd;
51 extern const size_t mbedtls_test_ca_pwd_len;
52 extern const char * mbedtls_test_srv_crt;
53 extern const size_t mbedtls_test_srv_crt_len;
54 extern const char * mbedtls_test_srv_key;
55 extern const size_t mbedtls_test_srv_key_len;
56 extern const char * mbedtls_test_cli_crt;
57 extern const size_t mbedtls_test_cli_crt_len;
58 extern const char * mbedtls_test_cli_key;
59 extern const size_t mbedtls_test_cli_key_len;
60 
61 #if defined(MBEDTLS_ECDSA_C)
62 extern const char mbedtls_test_ca_crt_ec[];
63 extern const size_t mbedtls_test_ca_crt_ec_len;
64 extern const char mbedtls_test_ca_key_ec[];
65 extern const size_t mbedtls_test_ca_key_ec_len;
66 extern const char mbedtls_test_ca_pwd_ec[];
67 extern const size_t mbedtls_test_ca_pwd_ec_len;
68 extern const char mbedtls_test_srv_crt_ec[];
69 extern const size_t mbedtls_test_srv_crt_ec_len;
70 extern const char mbedtls_test_srv_key_ec[];
71 extern const size_t mbedtls_test_srv_key_ec_len;
72 extern const char mbedtls_test_cli_crt_ec[];
73 extern const size_t mbedtls_test_cli_crt_ec_len;
74 extern const char mbedtls_test_cli_key_ec[];
75 extern const size_t mbedtls_test_cli_key_ec_len;
76 #endif
77 
78 #if defined(MBEDTLS_RSA_C)
79 extern const char mbedtls_test_ca_crt_rsa[];
80 extern const size_t mbedtls_test_ca_crt_rsa_len;
81 extern const char mbedtls_test_ca_key_rsa[];
82 extern const size_t mbedtls_test_ca_key_rsa_len;
83 extern const char mbedtls_test_ca_pwd_rsa[];
84 extern const size_t mbedtls_test_ca_pwd_rsa_len;
85 extern const char mbedtls_test_srv_crt_rsa[];
86 extern const size_t mbedtls_test_srv_crt_rsa_len;
87 extern const char mbedtls_test_srv_key_rsa[];
88 extern const size_t mbedtls_test_srv_key_rsa_len;
89 extern const char mbedtls_test_cli_crt_rsa[];
90 extern const size_t mbedtls_test_cli_crt_rsa_len;
91 extern const char mbedtls_test_cli_key_rsa[];
92 extern const size_t mbedtls_test_cli_key_rsa_len;
93 #endif
94 
95 #ifdef __cplusplus
96 }
97 #endif
98 
99 #endif /* certs.h */
const size_t mbedtls_test_cli_key_rsa_len
Definition: certs.c:326
const char mbedtls_test_ca_pwd_rsa[]
Definition: certs.c:218
const size_t mbedtls_test_ca_pwd_rsa_len
Definition: certs.c:219
const char mbedtls_test_srv_crt_rsa[]
Definition: certs.c:221
const size_t mbedtls_test_cas_len[]
Definition: certs.c:358
const char mbedtls_test_srv_key_ec[]
Definition: certs.c:84
const size_t mbedtls_test_srv_crt_ec_len
Definition: certs.c:82
const char mbedtls_test_cli_key_ec[]
Definition: certs.c:109
const char * mbedtls_test_srv_key
Definition: certs.c:376
const size_t mbedtls_test_srv_crt_rsa_len
Definition: certs.c:242
const size_t mbedtls_test_cli_key_len
Definition: certs.c:385
const size_t mbedtls_test_ca_crt_rsa_len
Definition: certs.c:145
const char * mbedtls_test_srv_crt
Definition: certs.c:375
const size_t mbedtls_test_cas_pem_len
Definition: certs.c:342
const char mbedtls_test_ca_key_ec[]
Definition: certs.c:52
const char mbedtls_test_cli_crt_ec[]
Definition: certs.c:92
const size_t mbedtls_test_ca_key_ec_len
Definition: certs.c:62
const char mbedtls_test_ca_crt_ec[]
Definition: certs.c:49
const char mbedtls_test_ca_key_rsa[]
Definition: certs.c:185
const char mbedtls_test_srv_key_rsa[]
Definition: certs.c:244
const size_t mbedtls_test_cli_key_ec_len
Definition: certs.c:115
const size_t mbedtls_test_ca_key_rsa_len
Definition: certs.c:216
const char * mbedtls_test_cli_crt
Definition: certs.c:377
const size_t mbedtls_test_cli_crt_rsa_len
Definition: certs.c:296
const size_t mbedtls_test_ca_crt_len
Definition: certs.c:379
const size_t mbedtls_test_cli_crt_len
Definition: certs.c:384
const char * mbedtls_test_ca_key
Definition: certs.c:373
const char mbedtls_test_srv_crt_ec[]
Definition: certs.c:67
const char * mbedtls_test_ca_pwd
Definition: certs.c:374
const size_t mbedtls_test_srv_key_len
Definition: certs.c:383
const size_t mbedtls_test_srv_key_ec_len
Definition: certs.c:90
const size_t mbedtls_test_ca_pwd_ec_len
Definition: certs.c:65
const size_t mbedtls_test_cli_crt_ec_len
Definition: certs.c:107
const char * mbedtls_test_cas[]
Definition: certs.c:346
const char mbedtls_test_cas_pem[]
Definition: certs.c:331
const size_t mbedtls_test_ca_pwd_len
Definition: certs.c:381
const size_t mbedtls_test_srv_crt_len
Definition: certs.c:382
const size_t mbedtls_test_srv_key_rsa_len
Definition: certs.c:272
const char mbedtls_test_ca_pwd_ec[]
Definition: certs.c:64
const char * mbedtls_test_cli_key
Definition: certs.c:378
const size_t mbedtls_test_ca_key_len
Definition: certs.c:380
const char mbedtls_test_cli_key_rsa[]
Definition: certs.c:298
const char * mbedtls_test_ca_crt
Definition: certs.c:372
const char mbedtls_test_cli_crt_rsa[]
Definition: certs.c:274
const size_t mbedtls_test_ca_crt_ec_len
Definition: certs.c:50
const char mbedtls_test_ca_crt_rsa[]
Definition: certs.c:144