A super trimmed down TLS stack, GPL licensed
Dependents: MiniTLS-HTTPS-Example
MiniTLS - A super trimmed down TLS/SSL Library for embedded devices Author: Donatien Garnier Copyright (C) 2013-2014 AppNearMe Ltd
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.
config.h@4:cbaf466d717d, 2014-06-10 (annotated)
- Committer:
- MiniTLS
- Date:
- Tue Jun 10 14:23:09 2014 +0000
- Revision:
- 4:cbaf466d717d
- Parent:
- 3:eb324ffffd2b
Fixes for mbed
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
MiniTLS | 1:27b41ba7e847 | 1 | /* |
MiniTLS | 1:27b41ba7e847 | 2 | MiniTLS - A super trimmed down TLS/SSL Library for embedded devices |
MiniTLS | 1:27b41ba7e847 | 3 | Author: Donatien Garnier |
MiniTLS | 1:27b41ba7e847 | 4 | Copyright (C) 2013-2014 AppNearMe Ltd |
MiniTLS | 1:27b41ba7e847 | 5 | |
MiniTLS | 1:27b41ba7e847 | 6 | This program is free software; you can redistribute it and/or |
MiniTLS | 1:27b41ba7e847 | 7 | modify it under the terms of the GNU General Public License |
MiniTLS | 1:27b41ba7e847 | 8 | as published by the Free Software Foundation; either version 2 |
MiniTLS | 1:27b41ba7e847 | 9 | of the License, or (at your option) any later version. |
MiniTLS | 1:27b41ba7e847 | 10 | |
MiniTLS | 1:27b41ba7e847 | 11 | This program is distributed in the hope that it will be useful, |
MiniTLS | 1:27b41ba7e847 | 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
MiniTLS | 1:27b41ba7e847 | 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
MiniTLS | 1:27b41ba7e847 | 14 | GNU General Public License for more details. |
MiniTLS | 1:27b41ba7e847 | 15 | |
MiniTLS | 1:27b41ba7e847 | 16 | You should have received a copy of the GNU General Public License |
MiniTLS | 1:27b41ba7e847 | 17 | along with this program; if not, write to the Free Software |
MiniTLS | 1:27b41ba7e847 | 18 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
MiniTLS | 1:27b41ba7e847 | 19 | *//** |
MiniTLS | 1:27b41ba7e847 | 20 | * \file config.h |
MiniTLS | 1:27b41ba7e847 | 21 | * \copyright Copyright (c) AppNearMe Ltd 2014 |
MiniTLS | 1:27b41ba7e847 | 22 | * \author Donatien Garnier |
MiniTLS | 1:27b41ba7e847 | 23 | */ |
MiniTLS | 1:27b41ba7e847 | 24 | |
MiniTLS | 1:27b41ba7e847 | 25 | #ifndef CONFIG_H_ |
MiniTLS | 1:27b41ba7e847 | 26 | #define CONFIG_H_ |
MiniTLS | 1:27b41ba7e847 | 27 | |
MiniTLS | 1:27b41ba7e847 | 28 | #ifdef __cplusplus |
MiniTLS | 1:27b41ba7e847 | 29 | extern "C" { |
MiniTLS | 1:27b41ba7e847 | 30 | #endif |
MiniTLS | 1:27b41ba7e847 | 31 | |
MiniTLS | 1:27b41ba7e847 | 32 | //Enable/disable support for individual protocols |
MiniTLS | 1:27b41ba7e847 | 33 | #define MINITLS_CFG_PROTOCOL_TLS_1_2 1 |
MiniTLS | 1:27b41ba7e847 | 34 | #define MINITLS_CFG_PROTOCOL_TLS_1_1 0 |
MiniTLS | 1:27b41ba7e847 | 35 | #define MINITLS_CFG_PROTOCOL_TLS_1_0 0 |
MiniTLS | 1:27b41ba7e847 | 36 | #define MINITLS_CFG_PROTOCOL_SSL_3 0 |
MiniTLS | 1:27b41ba7e847 | 37 | |
MiniTLS | 1:27b41ba7e847 | 38 | //Enable/disable key exchange mechanisms (this must match the server's certificate key type) |
MiniTLS | 1:27b41ba7e847 | 39 | #define MINITLS_CFG_KEY_RSA_1024 0 |
MiniTLS | 1:27b41ba7e847 | 40 | #define MINITLS_CFG_KEY_RSA_2048 1 |
MiniTLS | 1:27b41ba7e847 | 41 | #define MINITLS_CFG_KEY_ECDHE_ECDSA_192 0 |
MiniTLS | 1:27b41ba7e847 | 42 | |
MiniTLS | 3:eb324ffffd2b | 43 | //Enable/disable symmetric ciphers |
MiniTLS | 3:eb324ffffd2b | 44 | #define MINITLS_CFG_CIPHER_AES_128 0 |
MiniTLS | 3:eb324ffffd2b | 45 | #define MINITLS_CFG_CIPHER_ARC4 1 |
MiniTLS | 3:eb324ffffd2b | 46 | |
MiniTLS | 1:27b41ba7e847 | 47 | |
MiniTLS | 1:27b41ba7e847 | 48 | #ifdef __cplusplus |
MiniTLS | 1:27b41ba7e847 | 49 | } |
MiniTLS | 1:27b41ba7e847 | 50 | #endif |
MiniTLS | 1:27b41ba7e847 | 51 | |
MiniTLS | 1:27b41ba7e847 | 52 | #endif /* CONFIG_H_ */ |