mbed TLS library
Dependents: HTTPClient-SSL WS_SERVER
include/polarssl/certs.h@0:137634ff4186, 2015-06-11 (annotated)
- Committer:
- ansond
- Date:
- Thu Jun 11 03:27:03 2015 +0000
- Revision:
- 0:137634ff4186
initial commit
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
ansond | 0:137634ff4186 | 1 | /** |
ansond | 0:137634ff4186 | 2 | * \file certs.h |
ansond | 0:137634ff4186 | 3 | * |
ansond | 0:137634ff4186 | 4 | * \brief Sample certificates and DHM parameters for testing |
ansond | 0:137634ff4186 | 5 | * |
ansond | 0:137634ff4186 | 6 | * Copyright (C) 2006-2010, ARM Limited, All Rights Reserved |
ansond | 0:137634ff4186 | 7 | * |
ansond | 0:137634ff4186 | 8 | * This file is part of mbed TLS (https://tls.mbed.org) |
ansond | 0:137634ff4186 | 9 | * |
ansond | 0:137634ff4186 | 10 | * This program is free software; you can redistribute it and/or modify |
ansond | 0:137634ff4186 | 11 | * it under the terms of the GNU General Public License as published by |
ansond | 0:137634ff4186 | 12 | * the Free Software Foundation; either version 2 of the License, or |
ansond | 0:137634ff4186 | 13 | * (at your option) any later version. |
ansond | 0:137634ff4186 | 14 | * |
ansond | 0:137634ff4186 | 15 | * This program is distributed in the hope that it will be useful, |
ansond | 0:137634ff4186 | 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
ansond | 0:137634ff4186 | 17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
ansond | 0:137634ff4186 | 18 | * GNU General Public License for more details. |
ansond | 0:137634ff4186 | 19 | * |
ansond | 0:137634ff4186 | 20 | * You should have received a copy of the GNU General Public License along |
ansond | 0:137634ff4186 | 21 | * with this program; if not, write to the Free Software Foundation, Inc., |
ansond | 0:137634ff4186 | 22 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. |
ansond | 0:137634ff4186 | 23 | */ |
ansond | 0:137634ff4186 | 24 | #ifndef POLARSSL_CERTS_H |
ansond | 0:137634ff4186 | 25 | #define POLARSSL_CERTS_H |
ansond | 0:137634ff4186 | 26 | |
ansond | 0:137634ff4186 | 27 | #ifdef __cplusplus |
ansond | 0:137634ff4186 | 28 | extern "C" { |
ansond | 0:137634ff4186 | 29 | #endif |
ansond | 0:137634ff4186 | 30 | |
ansond | 0:137634ff4186 | 31 | /* Concatenation of all available CA certificates */ |
ansond | 0:137634ff4186 | 32 | extern const char test_ca_list[]; |
ansond | 0:137634ff4186 | 33 | |
ansond | 0:137634ff4186 | 34 | /* |
ansond | 0:137634ff4186 | 35 | * Convenience for users who just want a certificate: |
ansond | 0:137634ff4186 | 36 | * RSA by default, or ECDSA if RSA i not available |
ansond | 0:137634ff4186 | 37 | */ |
ansond | 0:137634ff4186 | 38 | extern const char *test_ca_crt; |
ansond | 0:137634ff4186 | 39 | extern const char *test_ca_key; |
ansond | 0:137634ff4186 | 40 | extern const char *test_ca_pwd; |
ansond | 0:137634ff4186 | 41 | extern const char *test_srv_crt; |
ansond | 0:137634ff4186 | 42 | extern const char *test_srv_key; |
ansond | 0:137634ff4186 | 43 | extern const char *test_cli_crt; |
ansond | 0:137634ff4186 | 44 | extern const char *test_cli_key; |
ansond | 0:137634ff4186 | 45 | |
ansond | 0:137634ff4186 | 46 | #if defined(POLARSSL_ECDSA_C) |
ansond | 0:137634ff4186 | 47 | extern const char test_ca_crt_ec[]; |
ansond | 0:137634ff4186 | 48 | extern const char test_ca_key_ec[]; |
ansond | 0:137634ff4186 | 49 | extern const char test_ca_pwd_ec[]; |
ansond | 0:137634ff4186 | 50 | extern const char test_srv_crt_ec[]; |
ansond | 0:137634ff4186 | 51 | extern const char test_srv_key_ec[]; |
ansond | 0:137634ff4186 | 52 | extern const char test_cli_crt_ec[]; |
ansond | 0:137634ff4186 | 53 | extern const char test_cli_key_ec[]; |
ansond | 0:137634ff4186 | 54 | #endif |
ansond | 0:137634ff4186 | 55 | |
ansond | 0:137634ff4186 | 56 | #if defined(POLARSSL_RSA_C) |
ansond | 0:137634ff4186 | 57 | extern const char test_ca_crt_rsa[]; |
ansond | 0:137634ff4186 | 58 | extern const char test_ca_key_rsa[]; |
ansond | 0:137634ff4186 | 59 | extern const char test_ca_pwd_rsa[]; |
ansond | 0:137634ff4186 | 60 | extern const char test_srv_crt_rsa[]; |
ansond | 0:137634ff4186 | 61 | extern const char test_srv_key_rsa[]; |
ansond | 0:137634ff4186 | 62 | extern const char test_cli_crt_rsa[]; |
ansond | 0:137634ff4186 | 63 | extern const char test_cli_key_rsa[]; |
ansond | 0:137634ff4186 | 64 | #endif |
ansond | 0:137634ff4186 | 65 | |
ansond | 0:137634ff4186 | 66 | #if defined(POLARSSL_DHM_C) |
ansond | 0:137634ff4186 | 67 | extern const char test_dhm_params[]; |
ansond | 0:137634ff4186 | 68 | #endif |
ansond | 0:137634ff4186 | 69 | |
ansond | 0:137634ff4186 | 70 | #ifdef __cplusplus |
ansond | 0:137634ff4186 | 71 | } |
ansond | 0:137634ff4186 | 72 | #endif |
ansond | 0:137634ff4186 | 73 | |
ansond | 0:137634ff4186 | 74 | #endif /* certs.h */ |
ansond | 0:137634ff4186 | 75 |