blob: ba7c028afaad58edae5a607d92956fcb042f3952 [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é-Gonnarda0fdf8b2013-09-25 14:05:49 +020037/*
38 * Convenience for users who just want a certificate:
39 * RSA by default, or ECDSA if RSA i not available
40 */
Manuel Pégourié-Gonnard482a2822013-09-24 19:33:17 +020041extern const char *test_ca_crt;
42extern const char *test_ca_key;
43extern const char *test_ca_pwd;
44extern const char *test_srv_crt;
45extern const char *test_srv_key;
46extern const char *test_cli_crt;
47extern const char *test_cli_key;
48
Manuel Pégourié-Gonnard482a2822013-09-24 19:33:17 +020049#if defined(POLARSSL_ECDSA_C)
50extern const char test_ca_crt_ec[];
51extern const char test_ca_key_ec[];
52extern const char test_ca_pwd_ec[];
53extern const char test_srv_crt_ec[];
54extern const char test_srv_key_ec[];
55extern const char test_cli_crt_ec[];
56extern const char test_cli_key_ec[];
57#endif
58
59#if defined(POLARSSL_RSA_C)
60extern const char test_ca_crt_rsa[];
61extern const char test_ca_key_rsa[];
62extern const char test_ca_pwd_rsa[];
63extern const char test_srv_crt_rsa[];
64extern const char test_srv_key_rsa[];
65extern const char test_cli_crt_rsa[];
66extern const char test_cli_key_rsa[];
67#endif
68
69#if defined(POLARSSL_DHM_C)
Paul Bakker1b57b062011-01-06 15:48:19 +000070extern const char test_dhm_params[];
Manuel Pégourié-Gonnard482a2822013-09-24 19:33:17 +020071#endif
Paul Bakker5121ce52009-01-03 21:22:43 +000072
73#ifdef __cplusplus
74}
75#endif
76
77#endif /* certs.h */