mbed client lightswitch demo

Dependencies:   mbed Socket lwip-eth lwip-sys lwip

Fork of mbed-client-classic-example-lwip by Austin Blackstone

Committer:
mbedAustin
Date:
Thu Jun 09 17:08:36 2016 +0000
Revision:
11:cada08fc8a70
Commit for public Consumption

Who changed what in which revision?

UserRevisionLine numberNew contents of line
mbedAustin 11:cada08fc8a70 1 /**
mbedAustin 11:cada08fc8a70 2 * \file certs.h
mbedAustin 11:cada08fc8a70 3 *
mbedAustin 11:cada08fc8a70 4 * \brief Sample certificates and DHM parameters for testing
mbedAustin 11:cada08fc8a70 5 *
mbedAustin 11:cada08fc8a70 6 * Copyright (C) 2006-2015, ARM Limited, All Rights Reserved
mbedAustin 11:cada08fc8a70 7 * SPDX-License-Identifier: Apache-2.0
mbedAustin 11:cada08fc8a70 8 *
mbedAustin 11:cada08fc8a70 9 * Licensed under the Apache License, Version 2.0 (the "License"); you may
mbedAustin 11:cada08fc8a70 10 * not use this file except in compliance with the License.
mbedAustin 11:cada08fc8a70 11 * You may obtain a copy of the License at
mbedAustin 11:cada08fc8a70 12 *
mbedAustin 11:cada08fc8a70 13 * http://www.apache.org/licenses/LICENSE-2.0
mbedAustin 11:cada08fc8a70 14 *
mbedAustin 11:cada08fc8a70 15 * Unless required by applicable law or agreed to in writing, software
mbedAustin 11:cada08fc8a70 16 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
mbedAustin 11:cada08fc8a70 17 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
mbedAustin 11:cada08fc8a70 18 * See the License for the specific language governing permissions and
mbedAustin 11:cada08fc8a70 19 * limitations under the License.
mbedAustin 11:cada08fc8a70 20 *
mbedAustin 11:cada08fc8a70 21 * This file is part of mbed TLS (https://tls.mbed.org)
mbedAustin 11:cada08fc8a70 22 */
mbedAustin 11:cada08fc8a70 23 #ifndef MBEDTLS_CERTS_H
mbedAustin 11:cada08fc8a70 24 #define MBEDTLS_CERTS_H
mbedAustin 11:cada08fc8a70 25
mbedAustin 11:cada08fc8a70 26 #include <stddef.h>
mbedAustin 11:cada08fc8a70 27
mbedAustin 11:cada08fc8a70 28 #ifdef __cplusplus
mbedAustin 11:cada08fc8a70 29 extern "C" {
mbedAustin 11:cada08fc8a70 30 #endif
mbedAustin 11:cada08fc8a70 31
mbedAustin 11:cada08fc8a70 32 #if defined(MBEDTLS_PEM_PARSE_C)
mbedAustin 11:cada08fc8a70 33 /* Concatenation of all CA certificates in PEM format if available */
mbedAustin 11:cada08fc8a70 34 extern const char mbedtls_test_cas_pem[];
mbedAustin 11:cada08fc8a70 35 extern const size_t mbedtls_test_cas_pem_len;
mbedAustin 11:cada08fc8a70 36 #endif
mbedAustin 11:cada08fc8a70 37
mbedAustin 11:cada08fc8a70 38 /* List of all CA certificates, terminated by NULL */
mbedAustin 11:cada08fc8a70 39 extern const char * mbedtls_test_cas[];
mbedAustin 11:cada08fc8a70 40 extern const size_t mbedtls_test_cas_len[];
mbedAustin 11:cada08fc8a70 41
mbedAustin 11:cada08fc8a70 42 /*
mbedAustin 11:cada08fc8a70 43 * Convenience for users who just want a certificate:
mbedAustin 11:cada08fc8a70 44 * RSA by default, or ECDSA if RSA is not available
mbedAustin 11:cada08fc8a70 45 */
mbedAustin 11:cada08fc8a70 46 extern const char * mbedtls_test_ca_crt;
mbedAustin 11:cada08fc8a70 47 extern const size_t mbedtls_test_ca_crt_len;
mbedAustin 11:cada08fc8a70 48 extern const char * mbedtls_test_ca_key;
mbedAustin 11:cada08fc8a70 49 extern const size_t mbedtls_test_ca_key_len;
mbedAustin 11:cada08fc8a70 50 extern const char * mbedtls_test_ca_pwd;
mbedAustin 11:cada08fc8a70 51 extern const size_t mbedtls_test_ca_pwd_len;
mbedAustin 11:cada08fc8a70 52 extern const char * mbedtls_test_srv_crt;
mbedAustin 11:cada08fc8a70 53 extern const size_t mbedtls_test_srv_crt_len;
mbedAustin 11:cada08fc8a70 54 extern const char * mbedtls_test_srv_key;
mbedAustin 11:cada08fc8a70 55 extern const size_t mbedtls_test_srv_key_len;
mbedAustin 11:cada08fc8a70 56 extern const char * mbedtls_test_cli_crt;
mbedAustin 11:cada08fc8a70 57 extern const size_t mbedtls_test_cli_crt_len;
mbedAustin 11:cada08fc8a70 58 extern const char * mbedtls_test_cli_key;
mbedAustin 11:cada08fc8a70 59 extern const size_t mbedtls_test_cli_key_len;
mbedAustin 11:cada08fc8a70 60
mbedAustin 11:cada08fc8a70 61 #if defined(MBEDTLS_ECDSA_C)
mbedAustin 11:cada08fc8a70 62 extern const char mbedtls_test_ca_crt_ec[];
mbedAustin 11:cada08fc8a70 63 extern const size_t mbedtls_test_ca_crt_ec_len;
mbedAustin 11:cada08fc8a70 64 extern const char mbedtls_test_ca_key_ec[];
mbedAustin 11:cada08fc8a70 65 extern const size_t mbedtls_test_ca_key_ec_len;
mbedAustin 11:cada08fc8a70 66 extern const char mbedtls_test_ca_pwd_ec[];
mbedAustin 11:cada08fc8a70 67 extern const size_t mbedtls_test_ca_pwd_ec_len;
mbedAustin 11:cada08fc8a70 68 extern const char mbedtls_test_srv_crt_ec[];
mbedAustin 11:cada08fc8a70 69 extern const size_t mbedtls_test_srv_crt_ec_len;
mbedAustin 11:cada08fc8a70 70 extern const char mbedtls_test_srv_key_ec[];
mbedAustin 11:cada08fc8a70 71 extern const size_t mbedtls_test_srv_key_ec_len;
mbedAustin 11:cada08fc8a70 72 extern const char mbedtls_test_cli_crt_ec[];
mbedAustin 11:cada08fc8a70 73 extern const size_t mbedtls_test_cli_crt_ec_len;
mbedAustin 11:cada08fc8a70 74 extern const char mbedtls_test_cli_key_ec[];
mbedAustin 11:cada08fc8a70 75 extern const size_t mbedtls_test_cli_key_ec_len;
mbedAustin 11:cada08fc8a70 76 #endif
mbedAustin 11:cada08fc8a70 77
mbedAustin 11:cada08fc8a70 78 #if defined(MBEDTLS_RSA_C)
mbedAustin 11:cada08fc8a70 79 extern const char mbedtls_test_ca_crt_rsa[];
mbedAustin 11:cada08fc8a70 80 extern const size_t mbedtls_test_ca_crt_rsa_len;
mbedAustin 11:cada08fc8a70 81 extern const char mbedtls_test_ca_key_rsa[];
mbedAustin 11:cada08fc8a70 82 extern const size_t mbedtls_test_ca_key_rsa_len;
mbedAustin 11:cada08fc8a70 83 extern const char mbedtls_test_ca_pwd_rsa[];
mbedAustin 11:cada08fc8a70 84 extern const size_t mbedtls_test_ca_pwd_rsa_len;
mbedAustin 11:cada08fc8a70 85 extern const char mbedtls_test_srv_crt_rsa[];
mbedAustin 11:cada08fc8a70 86 extern const size_t mbedtls_test_srv_crt_rsa_len;
mbedAustin 11:cada08fc8a70 87 extern const char mbedtls_test_srv_key_rsa[];
mbedAustin 11:cada08fc8a70 88 extern const size_t mbedtls_test_srv_key_rsa_len;
mbedAustin 11:cada08fc8a70 89 extern const char mbedtls_test_cli_crt_rsa[];
mbedAustin 11:cada08fc8a70 90 extern const size_t mbedtls_test_cli_crt_rsa_len;
mbedAustin 11:cada08fc8a70 91 extern const char mbedtls_test_cli_key_rsa[];
mbedAustin 11:cada08fc8a70 92 extern const size_t mbedtls_test_cli_key_rsa_len;
mbedAustin 11:cada08fc8a70 93 #endif
mbedAustin 11:cada08fc8a70 94
mbedAustin 11:cada08fc8a70 95 #ifdef __cplusplus
mbedAustin 11:cada08fc8a70 96 }
mbedAustin 11:cada08fc8a70 97 #endif
mbedAustin 11:cada08fc8a70 98
mbedAustin 11:cada08fc8a70 99 #endif /* certs.h */