mbed TLS Build

Dependents:   Slave-prot-prod

Committer:
markrad
Date:
Thu Jan 05 00:18:44 2017 +0000
Revision:
0:cdf462088d13
Initial commit

Who changed what in which revision?

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