Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: MiniTLS-HTTPS-Example
minitls_errors.h
00001 /* 00002 MiniTLS - A super trimmed down TLS/SSL Library for embedded devices 00003 Author: Donatien Garnier 00004 Copyright (C) 2013-2014 AppNearMe Ltd 00005 00006 This program is free software; you can redistribute it and/or 00007 modify it under the terms of the GNU General Public License 00008 as published by the Free Software Foundation; either version 2 00009 of the License, or (at your option) any later version. 00010 00011 This program is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public License for more details. 00015 00016 You should have received a copy of the GNU General Public License 00017 along with this program; if not, write to the Free Software 00018 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00019 *//** 00020 * \file minitls_errors.h 00021 * \copyright Copyright (c) AppNearMe Ltd 2013 00022 * \author Donatien Garnier 00023 */ 00024 00025 #ifndef MINITLS_ERRORS_H_ 00026 #define MINITLS_ERRORS_H_ 00027 00028 #ifdef __cplusplus 00029 extern "C" { 00030 #endif 00031 00032 #define MINITLS_OK 0 00033 00034 #define MINITLS_ERR_TIMEOUT 1 00035 #define MINITLS_ERR_MEMORY 2 00036 #define MINITLS_ERR_BUFFER_TOO_SMALL 3 00037 #define MINITLS_ERR_DATA_DOES_NOT_FIT_FRAGMENT 4 00038 #define MINITLS_ERR_WRONG_LENGTH 5 00039 #define MINITLS_ERR_CRYPTO 6 00040 #define MINITLS_ERR_PARAMETERS 7 00041 00042 #define MINITLS_ERR_SOCKET_CLOSED 11 00043 #define MINITLS_ERR_SOCKET_ERROR 12 00044 00045 #define MINITLS_ERR_PROTOCOL_VERSION 21 00046 #define MINITLS_ERR_PROTOCOL_NON_CONFORMANT 22 00047 00048 #define MINITLS_ERR_NOT_IMPLEMENTED 31 00049 #define MINITLS_ERR_PEER 32 00050 #define MINITLS_ERR_CONNECTION_CLOSED 33 00051 00052 #define MINITLS_ERR_WRONG_CERTIFICATE 41 00053 #define MINITLS_ERR_WRONG_MAC 42 00054 #define MINITLS_ERR_PRNG 43 00055 #define MINITLS_ERR_WRONG_ECDSA 44 00056 #define MINITLS_ERR_WRONG_CURVE 45 00057 #define MINITLS_ERR_WRONG_ALIGNMENT_FOR_CIPHER 46 00058 #define MINITLS_ERR_WRONG_RSA_KEY_TYPE 47 00059 00060 typedef int minitls_err_t; 00061 00062 #ifdef __cplusplus 00063 } 00064 #endif 00065 00066 #endif /* MINITLS_ERRORS_H_ */
Generated on Wed Jul 13 2022 00:22:54 by
1.7.2