blob: 5fcd85da0add94eb987c2f8ffcbd6b7a95009b39 [file] [log] [blame]
Paul Bakker5121ce52009-01-03 21:22:43 +00001/**
2 * \file certs.h
Paul Bakkere0ccd0a2009-01-04 16:27:10 +00003 *
Paul Bakkerf3b86c12011-01-27 15:24:17 +00004 * \brief Sample certificates and DHM parameters for testing
Paul Bakker37ca75d2011-01-06 12:28:03 +00005 *
Paul Bakker84f12b72010-07-18 10:13:04 +00006 * Copyright (C) 2006-2010, Brainspark B.V.
Paul Bakkerb96f1542010-07-18 20:36:00 +00007 *
8 * This file is part of PolarSSL (http://www.polarssl.org)
Paul Bakker84f12b72010-07-18 10:13:04 +00009 * Lead Maintainer: Paul Bakker <polarssl_maintainer at polarssl.org>
Paul Bakkerb96f1542010-07-18 20:36:00 +000010 *
Paul Bakker77b385e2009-07-28 17:23:11 +000011 * All rights reserved.
Paul Bakkere0ccd0a2009-01-04 16:27:10 +000012 *
Paul Bakkere0ccd0a2009-01-04 16:27:10 +000013 * This program is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License as published by
15 * the Free Software Foundation; either version 2 of the License, or
16 * (at your option) any later version.
17 *
18 * This program is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU General Public License for more details.
22 *
23 * You should have received a copy of the GNU General Public License along
24 * with this program; if not, write to the Free Software Foundation, Inc.,
25 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Paul Bakker5121ce52009-01-03 21:22:43 +000026 */
Paul Bakker40e46942009-01-03 21:51:57 +000027#ifndef POLARSSL_CERTS_H
28#define POLARSSL_CERTS_H
Paul Bakker5121ce52009-01-03 21:22:43 +000029
30#ifdef __cplusplus
31extern "C" {
32#endif
33
Manuel Pégourié-Gonnard641de712013-09-25 13:23:33 +020034/* Concatenation of all available CA certificates */
35extern const char test_ca_list[];
36
Manuel Pégourié-Gonnard482a2822013-09-24 19:33:17 +020037/* First set of certificates: RSA, or ECDSA if RSA is not available */
38extern const char *test_ca_crt;
39extern const char *test_ca_key;
40extern const char *test_ca_pwd;
41extern const char *test_srv_crt;
42extern const char *test_srv_key;
43extern const char *test_cli_crt;
44extern const char *test_cli_key;
45
46/* Second set of certificates: ECDSA is both are available */
47#if defined(POLARSSL_RSA_C) && defined(POLARSSL_RSA_C)
48extern const char *test_ca_crt2;
49extern const char *test_ca_key2;
50extern const char *test_ca_pwd2;
51extern const char *test_srv_crt2;
52extern const char *test_srv_key2;
53extern const char *test_cli_crt2;
54extern const char *test_cli_key2;
55#endif
56
57#if defined(POLARSSL_ECDSA_C)
58extern const char test_ca_crt_ec[];
59extern const char test_ca_key_ec[];
60extern const char test_ca_pwd_ec[];
61extern const char test_srv_crt_ec[];
62extern const char test_srv_key_ec[];
63extern const char test_cli_crt_ec[];
64extern const char test_cli_key_ec[];
65#endif
66
67#if defined(POLARSSL_RSA_C)
68extern const char test_ca_crt_rsa[];
69extern const char test_ca_key_rsa[];
70extern const char test_ca_pwd_rsa[];
71extern const char test_srv_crt_rsa[];
72extern const char test_srv_key_rsa[];
73extern const char test_cli_crt_rsa[];
74extern const char test_cli_key_rsa[];
75#endif
76
77#if defined(POLARSSL_DHM_C)
Paul Bakker1b57b062011-01-06 15:48:19 +000078extern const char test_dhm_params[];
Manuel Pégourié-Gonnard482a2822013-09-24 19:33:17 +020079#endif
Paul Bakker5121ce52009-01-03 21:22:43 +000080
81#ifdef __cplusplus
82}
83#endif
84
85#endif /* certs.h */