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