change some parameters in the library to meet the needs of the website httpbin.org
Fork of MiniTLS-GPL by
inc/minitls_config.h@4:cbaf466d717d, 2014-06-10 (annotated)
- Committer:
- MiniTLS
- Date:
- Tue Jun 10 14:23:09 2014 +0000
- Revision:
- 4:cbaf466d717d
Fixes for mbed
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
MiniTLS | 4:cbaf466d717d | 1 | /* |
MiniTLS | 4:cbaf466d717d | 2 | MiniTLS - A super trimmed down TLS/SSL Library for embedded devices |
MiniTLS | 4:cbaf466d717d | 3 | Author: Donatien Garnier |
MiniTLS | 4:cbaf466d717d | 4 | Copyright (C) 2013-2014 AppNearMe Ltd |
MiniTLS | 4:cbaf466d717d | 5 | |
MiniTLS | 4:cbaf466d717d | 6 | This program is free software; you can redistribute it and/or |
MiniTLS | 4:cbaf466d717d | 7 | modify it under the terms of the GNU General Public License |
MiniTLS | 4:cbaf466d717d | 8 | as published by the Free Software Foundation; either version 2 |
MiniTLS | 4:cbaf466d717d | 9 | of the License, or (at your option) any later version. |
MiniTLS | 4:cbaf466d717d | 10 | |
MiniTLS | 4:cbaf466d717d | 11 | This program is distributed in the hope that it will be useful, |
MiniTLS | 4:cbaf466d717d | 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
MiniTLS | 4:cbaf466d717d | 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
MiniTLS | 4:cbaf466d717d | 14 | GNU General Public License for more details. |
MiniTLS | 4:cbaf466d717d | 15 | |
MiniTLS | 4:cbaf466d717d | 16 | You should have received a copy of the GNU General Public License |
MiniTLS | 4:cbaf466d717d | 17 | along with this program; if not, write to the Free Software |
MiniTLS | 4:cbaf466d717d | 18 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
MiniTLS | 4:cbaf466d717d | 19 | *//** |
MiniTLS | 4:cbaf466d717d | 20 | * \file minitls_config.h |
MiniTLS | 4:cbaf466d717d | 21 | * \copyright Copyright (c) AppNearMe Ltd 2013 |
MiniTLS | 4:cbaf466d717d | 22 | * \author Donatien Garnier |
MiniTLS | 4:cbaf466d717d | 23 | */ |
MiniTLS | 4:cbaf466d717d | 24 | |
MiniTLS | 4:cbaf466d717d | 25 | #ifndef MINITLS_CONFIG_H_ |
MiniTLS | 4:cbaf466d717d | 26 | #define MINITLS_CONFIG_H_ |
MiniTLS | 4:cbaf466d717d | 27 | |
MiniTLS | 4:cbaf466d717d | 28 | #ifdef __cplusplus |
MiniTLS | 4:cbaf466d717d | 29 | extern "C" { |
MiniTLS | 4:cbaf466d717d | 30 | #endif |
MiniTLS | 4:cbaf466d717d | 31 | |
MiniTLS | 4:cbaf466d717d | 32 | #include "core/fwk.h" |
MiniTLS | 4:cbaf466d717d | 33 | #include "../config.h" |
MiniTLS | 4:cbaf466d717d | 34 | |
MiniTLS | 4:cbaf466d717d | 35 | #define CRYPTO_ECC (MINITLS_CFG_KEY_ECDHE_ECDSA_192) |
MiniTLS | 4:cbaf466d717d | 36 | #define CRYPTO_ECC192 (MINITLS_CFG_KEY_ECDHE_ECDSA_192) |
MiniTLS | 4:cbaf466d717d | 37 | #define CRYPTO_MAX_ECC_KEY_SIZE (MINITLS_CFG_KEY_ECDHE_ECDSA_192?192:0) |
MiniTLS | 4:cbaf466d717d | 38 | |
MiniTLS | 4:cbaf466d717d | 39 | #define CRYPTO_RSA (MINITLS_CFG_KEY_RSA_1024||MINITLS_CFG_KEY_RSA_2048) |
MiniTLS | 4:cbaf466d717d | 40 | #define CRYPTO_MAX_RSA_KEY_SIZE (MINITLS_CFG_KEY_RSA_2048?2048:(MINITLS_CFG_KEY_RSA_1024?1024:0)) |
MiniTLS | 4:cbaf466d717d | 41 | |
MiniTLS | 4:cbaf466d717d | 42 | #define CRYPTO_MAX_KEY_SIZE MAX(CRYPTO_MAX_ECC_KEY_SIZE,CRYPTO_MAX_RSA_KEY_SIZE) /*((4*32)+(MAX_ECC_KEY_SIZE*2))*/ //Bits |
MiniTLS | 4:cbaf466d717d | 43 | |
MiniTLS | 4:cbaf466d717d | 44 | #define CRYPTO_AES_128 (MINITLS_CFG_CIPHER_AES_128) |
MiniTLS | 4:cbaf466d717d | 45 | #define CRYPTO_ARC4 (MINITLS_CFG_CIPHER_ARC4) |
MiniTLS | 4:cbaf466d717d | 46 | |
MiniTLS | 4:cbaf466d717d | 47 | #define ENDIAN_LITTLE |
MiniTLS | 4:cbaf466d717d | 48 | |
MiniTLS | 4:cbaf466d717d | 49 | #ifdef __cplusplus |
MiniTLS | 4:cbaf466d717d | 50 | } |
MiniTLS | 4:cbaf466d717d | 51 | #endif |
MiniTLS | 4:cbaf466d717d | 52 | |
MiniTLS | 4:cbaf466d717d | 53 | #endif /* MINITLS_CONFIG_H_ */ |