Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 1 | /** |
| 2 | * \file certs.h |
Paul Bakker | e0ccd0a | 2009-01-04 16:27:10 +0000 | [diff] [blame] | 3 | * |
Paul Bakker | f3b86c1 | 2011-01-27 15:24:17 +0000 | [diff] [blame] | 4 | * \brief Sample certificates and DHM parameters for testing |
Paul Bakker | 37ca75d | 2011-01-06 12:28:03 +0000 | [diff] [blame] | 5 | * |
Manuel Pégourié-Gonnard | a658a40 | 2015-01-23 09:45:19 +0000 | [diff] [blame] | 6 | * Copyright (C) 2006-2010, ARM Limited, All Rights Reserved |
Paul Bakker | b96f154 | 2010-07-18 20:36:00 +0000 | [diff] [blame] | 7 | * |
Manuel Pégourié-Gonnard | 860b516 | 2015-01-28 17:12:07 +0000 | [diff] [blame] | 8 | * This file is part of mbed TLS (https://polarssl.org) |
Paul Bakker | b96f154 | 2010-07-18 20:36:00 +0000 | [diff] [blame] | 9 | * |
Paul Bakker | e0ccd0a | 2009-01-04 16:27:10 +0000 | [diff] [blame] | 10 | * 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 Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 23 | */ |
Paul Bakker | 40e4694 | 2009-01-03 21:51:57 +0000 | [diff] [blame] | 24 | #ifndef POLARSSL_CERTS_H |
| 25 | #define POLARSSL_CERTS_H |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 26 | |
| 27 | #ifdef __cplusplus |
| 28 | extern "C" { |
| 29 | #endif |
| 30 | |
Manuel Pégourié-Gonnard | 641de71 | 2013-09-25 13:23:33 +0200 | [diff] [blame] | 31 | /* Concatenation of all available CA certificates */ |
| 32 | extern const char test_ca_list[]; |
| 33 | |
Manuel Pégourié-Gonnard | a0fdf8b | 2013-09-25 14:05:49 +0200 | [diff] [blame] | 34 | /* |
| 35 | * Convenience for users who just want a certificate: |
| 36 | * RSA by default, or ECDSA if RSA i not available |
| 37 | */ |
Manuel Pégourié-Gonnard | 482a282 | 2013-09-24 19:33:17 +0200 | [diff] [blame] | 38 | extern const char *test_ca_crt; |
| 39 | extern const char *test_ca_key; |
| 40 | extern const char *test_ca_pwd; |
| 41 | extern const char *test_srv_crt; |
| 42 | extern const char *test_srv_key; |
| 43 | extern const char *test_cli_crt; |
| 44 | extern const char *test_cli_key; |
| 45 | |
Manuel Pégourié-Gonnard | 482a282 | 2013-09-24 19:33:17 +0200 | [diff] [blame] | 46 | #if defined(POLARSSL_ECDSA_C) |
| 47 | extern const char test_ca_crt_ec[]; |
| 48 | extern const char test_ca_key_ec[]; |
| 49 | extern const char test_ca_pwd_ec[]; |
| 50 | extern const char test_srv_crt_ec[]; |
| 51 | extern const char test_srv_key_ec[]; |
| 52 | extern const char test_cli_crt_ec[]; |
| 53 | extern const char test_cli_key_ec[]; |
| 54 | #endif |
| 55 | |
| 56 | #if defined(POLARSSL_RSA_C) |
| 57 | extern const char test_ca_crt_rsa[]; |
| 58 | extern const char test_ca_key_rsa[]; |
| 59 | extern const char test_ca_pwd_rsa[]; |
| 60 | extern const char test_srv_crt_rsa[]; |
| 61 | extern const char test_srv_key_rsa[]; |
| 62 | extern const char test_cli_crt_rsa[]; |
| 63 | extern const char test_cli_key_rsa[]; |
| 64 | #endif |
| 65 | |
| 66 | #if defined(POLARSSL_DHM_C) |
Paul Bakker | 1b57b06 | 2011-01-06 15:48:19 +0000 | [diff] [blame] | 67 | extern const char test_dhm_params[]; |
Manuel Pégourié-Gonnard | 482a282 | 2013-09-24 19:33:17 +0200 | [diff] [blame] | 68 | #endif |
Paul Bakker | 5121ce5 | 2009-01-03 21:22:43 +0000 | [diff] [blame] | 69 | |
| 70 | #ifdef __cplusplus |
| 71 | } |
| 72 | #endif |
| 73 | |
| 74 | #endif /* certs.h */ |