change some parameters in the library to meet the needs of the website httpbin.org
Fork of MiniTLS-GPL by
inc/minitls_errors.h@1:27b41ba7e847, 2014-06-09 (annotated)
- Committer:
- MiniTLS
- Date:
- Mon Jun 09 14:57:32 2014 +0000
- Revision:
- 1:27b41ba7e847
Renamed to MiniTLS and added doc
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 minitls_errors.h |
MiniTLS | 1:27b41ba7e847 | 21 | * \copyright Copyright (c) AppNearMe Ltd 2013 |
MiniTLS | 1:27b41ba7e847 | 22 | * \author Donatien Garnier |
MiniTLS | 1:27b41ba7e847 | 23 | */ |
MiniTLS | 1:27b41ba7e847 | 24 | |
MiniTLS | 1:27b41ba7e847 | 25 | #ifndef MINITLS_ERRORS_H_ |
MiniTLS | 1:27b41ba7e847 | 26 | #define MINITLS_ERRORS_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 | #define MINITLS_OK 0 |
MiniTLS | 1:27b41ba7e847 | 33 | |
MiniTLS | 1:27b41ba7e847 | 34 | #define MINITLS_ERR_TIMEOUT 1 |
MiniTLS | 1:27b41ba7e847 | 35 | #define MINITLS_ERR_MEMORY 2 |
MiniTLS | 1:27b41ba7e847 | 36 | #define MINITLS_ERR_BUFFER_TOO_SMALL 3 |
MiniTLS | 1:27b41ba7e847 | 37 | #define MINITLS_ERR_DATA_DOES_NOT_FIT_FRAGMENT 4 |
MiniTLS | 1:27b41ba7e847 | 38 | #define MINITLS_ERR_WRONG_LENGTH 5 |
MiniTLS | 1:27b41ba7e847 | 39 | #define MINITLS_ERR_CRYPTO 6 |
MiniTLS | 1:27b41ba7e847 | 40 | #define MINITLS_ERR_PARAMETERS 7 |
MiniTLS | 1:27b41ba7e847 | 41 | |
MiniTLS | 1:27b41ba7e847 | 42 | #define MINITLS_ERR_SOCKET_CLOSED 11 |
MiniTLS | 1:27b41ba7e847 | 43 | #define MINITLS_ERR_SOCKET_ERROR 12 |
MiniTLS | 1:27b41ba7e847 | 44 | |
MiniTLS | 1:27b41ba7e847 | 45 | #define MINITLS_ERR_PROTOCOL_VERSION 21 |
MiniTLS | 1:27b41ba7e847 | 46 | #define MINITLS_ERR_PROTOCOL_NON_CONFORMANT 22 |
MiniTLS | 1:27b41ba7e847 | 47 | |
MiniTLS | 1:27b41ba7e847 | 48 | #define MINITLS_ERR_NOT_IMPLEMENTED 31 |
MiniTLS | 1:27b41ba7e847 | 49 | #define MINITLS_ERR_PEER 32 |
MiniTLS | 1:27b41ba7e847 | 50 | #define MINITLS_ERR_CONNECTION_CLOSED 33 |
MiniTLS | 1:27b41ba7e847 | 51 | |
MiniTLS | 1:27b41ba7e847 | 52 | #define MINITLS_ERR_WRONG_CERTIFICATE 41 |
MiniTLS | 1:27b41ba7e847 | 53 | #define MINITLS_ERR_WRONG_MAC 42 |
MiniTLS | 1:27b41ba7e847 | 54 | #define MINITLS_ERR_PRNG 43 |
MiniTLS | 1:27b41ba7e847 | 55 | #define MINITLS_ERR_WRONG_ECDSA 44 |
MiniTLS | 1:27b41ba7e847 | 56 | #define MINITLS_ERR_WRONG_CURVE 45 |
MiniTLS | 1:27b41ba7e847 | 57 | #define MINITLS_ERR_WRONG_ALIGNMENT_FOR_CIPHER 46 |
MiniTLS | 1:27b41ba7e847 | 58 | #define MINITLS_ERR_WRONG_RSA_KEY_TYPE 47 |
MiniTLS | 1:27b41ba7e847 | 59 | |
MiniTLS | 1:27b41ba7e847 | 60 | typedef int minitls_err_t; |
MiniTLS | 1:27b41ba7e847 | 61 | |
MiniTLS | 1:27b41ba7e847 | 62 | #ifdef __cplusplus |
MiniTLS | 1:27b41ba7e847 | 63 | } |
MiniTLS | 1:27b41ba7e847 | 64 | #endif |
MiniTLS | 1:27b41ba7e847 | 65 | |
MiniTLS | 1:27b41ba7e847 | 66 | #endif /* MINITLS_ERRORS_H_ */ |