2009-01-03 22:22:43 +01:00
|
|
|
/**
|
|
|
|
* \file certs.h
|
2009-01-04 17:27:10 +01:00
|
|
|
*
|
2011-01-27 16:24:17 +01:00
|
|
|
* \brief Sample certificates and DHM parameters for testing
|
2011-01-06 13:28:03 +01:00
|
|
|
*
|
2010-07-18 12:13:04 +02:00
|
|
|
* Copyright (C) 2006-2010, Brainspark B.V.
|
2010-07-18 22:36:00 +02:00
|
|
|
*
|
|
|
|
* This file is part of PolarSSL (http://www.polarssl.org)
|
2010-07-18 12:13:04 +02:00
|
|
|
* Lead Maintainer: Paul Bakker <polarssl_maintainer at polarssl.org>
|
2010-07-18 22:36:00 +02:00
|
|
|
*
|
2009-07-28 19:23:11 +02:00
|
|
|
* All rights reserved.
|
2009-01-04 17:27:10 +01:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2009-01-03 22:22:43 +01:00
|
|
|
*/
|
2009-01-03 22:51:57 +01:00
|
|
|
#ifndef POLARSSL_CERTS_H
|
|
|
|
#define POLARSSL_CERTS_H
|
2009-01-03 22:22:43 +01:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2013-09-25 13:23:33 +02:00
|
|
|
/* Concatenation of all available CA certificates */
|
|
|
|
extern const char test_ca_list[];
|
|
|
|
|
2013-09-25 14:05:49 +02:00
|
|
|
/*
|
|
|
|
* Convenience for users who just want a certificate:
|
|
|
|
* RSA by default, or ECDSA if RSA i not available
|
|
|
|
*/
|
2013-09-24 19:33:17 +02:00
|
|
|
extern const char *test_ca_crt;
|
|
|
|
extern const char *test_ca_key;
|
|
|
|
extern const char *test_ca_pwd;
|
|
|
|
extern const char *test_srv_crt;
|
|
|
|
extern const char *test_srv_key;
|
|
|
|
extern const char *test_cli_crt;
|
|
|
|
extern const char *test_cli_key;
|
|
|
|
|
|
|
|
#if defined(POLARSSL_ECDSA_C)
|
|
|
|
extern const char test_ca_crt_ec[];
|
|
|
|
extern const char test_ca_key_ec[];
|
|
|
|
extern const char test_ca_pwd_ec[];
|
|
|
|
extern const char test_srv_crt_ec[];
|
|
|
|
extern const char test_srv_key_ec[];
|
|
|
|
extern const char test_cli_crt_ec[];
|
|
|
|
extern const char test_cli_key_ec[];
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(POLARSSL_RSA_C)
|
|
|
|
extern const char test_ca_crt_rsa[];
|
|
|
|
extern const char test_ca_key_rsa[];
|
|
|
|
extern const char test_ca_pwd_rsa[];
|
|
|
|
extern const char test_srv_crt_rsa[];
|
|
|
|
extern const char test_srv_key_rsa[];
|
|
|
|
extern const char test_cli_crt_rsa[];
|
|
|
|
extern const char test_cli_key_rsa[];
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#if defined(POLARSSL_DHM_C)
|
2011-01-06 16:48:19 +01:00
|
|
|
extern const char test_dhm_params[];
|
2013-09-24 19:33:17 +02:00
|
|
|
#endif
|
2009-01-03 22:22:43 +01:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* certs.h */
|