blob: d2216602f615f86eeeb52bc61fde5d8fd3b62f37 [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 *
Manuel Pégourié-Gonnarda658a402015-01-23 09:45:19 +00006 * Copyright (C) 2006-2010, ARM Limited, All Rights Reserved
Paul Bakkerb96f1542010-07-18 20:36:00 +00007 *
Manuel Pégourié-Gonnardfe446432015-03-06 13:17:10 +00008 * This file is part of mbed TLS (https://tls.mbed.org)
Paul Bakkerb96f1542010-07-18 20:36:00 +00009 *
Paul Bakkere0ccd0a2009-01-04 16:27:10 +000010 * 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.
Paul Bakker5121ce52009-01-03 21:22:43 +000023 */
Paul Bakker40e46942009-01-03 21:51:57 +000024#ifndef POLARSSL_CERTS_H
25#define POLARSSL_CERTS_H
Paul Bakker5121ce52009-01-03 21:22:43 +000026
27#ifdef __cplusplus
28extern "C" {
29#endif
30
Manuel Pégourié-Gonnard641de712013-09-25 13:23:33 +020031/* Concatenation of all available CA certificates */
32extern const char test_ca_list[];
33
Manuel Pégourié-Gonnarda0fdf8b2013-09-25 14:05:49 +020034/*
35 * Convenience for users who just want a certificate:
36 * RSA by default, or ECDSA if RSA i not available
37 */
Manuel Pégourié-Gonnard482a2822013-09-24 19:33:17 +020038extern 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
Manuel Pégourié-Gonnard482a2822013-09-24 19:33:17 +020046#if defined(POLARSSL_ECDSA_C)
47extern const char test_ca_crt_ec[];
48extern const char test_ca_key_ec[];
49extern const char test_ca_pwd_ec[];
50extern const char test_srv_crt_ec[];
51extern const char test_srv_key_ec[];
52extern const char test_cli_crt_ec[];
53extern const char test_cli_key_ec[];
54#endif
55
56#if defined(POLARSSL_RSA_C)
57extern const char test_ca_crt_rsa[];
58extern const char test_ca_key_rsa[];
59extern const char test_ca_pwd_rsa[];
60extern const char test_srv_crt_rsa[];
61extern const char test_srv_key_rsa[];
62extern const char test_cli_crt_rsa[];
63extern const char test_cli_key_rsa[];
64#endif
65
66#if defined(POLARSSL_DHM_C)
Paul Bakker1b57b062011-01-06 15:48:19 +000067extern const char test_dhm_params[];
Manuel Pégourié-Gonnard482a2822013-09-24 19:33:17 +020068#endif
Paul Bakker5121ce52009-01-03 21:22:43 +000069
70#ifdef __cplusplus
71}
72#endif
73
74#endif /* certs.h */