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: HTTPClient-SSL HTTPClient-SSL HTTPClient-SSL HTTPClient-SSL
sniffer.h
00001 /* sniffer.h 00002 * 00003 * Copyright (C) 2006-2014 wolfSSL Inc. 00004 * 00005 * This file is part of CyaSSL. 00006 * 00007 * CyaSSL is free software; you can redistribute it and/or modify 00008 * it under the terms of the GNU General Public License as published by 00009 * the Free Software Foundation; either version 2 of the License, or 00010 * (at your option) any later version. 00011 * 00012 * CyaSSL is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 * GNU General Public License for more details. 00016 * 00017 * You should have received a copy of the GNU General Public License 00018 * along with this program; if not, write to the Free Software 00019 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA 00020 */ 00021 00022 00023 #ifndef CYASSL_SNIFFER_H 00024 #define CYASSL_SNIFFER_H 00025 00026 #include <cyassl/ctaocrypt/settings.h> 00027 00028 #ifdef _WIN32 00029 #ifdef SSL_SNIFFER_EXPORTS 00030 #define SSL_SNIFFER_API __declspec(dllexport) 00031 #else 00032 #define SSL_SNIFFER_API __declspec(dllimport) 00033 #endif 00034 #else 00035 #define SSL_SNIFFER_API 00036 #endif /* _WIN32 */ 00037 00038 00039 #ifdef __cplusplus 00040 extern "C" { 00041 #endif 00042 00043 00044 CYASSL_API 00045 SSL_SNIFFER_API int ssl_SetPrivateKey(const char* address, int port, 00046 const char* keyFile, int keyType, 00047 const char* password, char* error); 00048 00049 CYASSL_API 00050 SSL_SNIFFER_API int ssl_SetNamedPrivateKey(const char* name, 00051 const char* address, int port, 00052 const char* keyFile, int keyType, 00053 const char* password, char* error); 00054 00055 CYASSL_API 00056 SSL_SNIFFER_API int ssl_DecodePacket(const unsigned char* packet, int length, 00057 unsigned char* data, char* error); 00058 00059 CYASSL_API 00060 SSL_SNIFFER_API int ssl_Trace(const char* traceFile, char* error); 00061 00062 00063 CYASSL_API void ssl_InitSniffer(void); 00064 00065 CYASSL_API void ssl_FreeSniffer(void); 00066 00067 00068 /* ssl_SetPrivateKey keyTypes */ 00069 enum { 00070 FILETYPE_PEM = 1, 00071 FILETYPE_DER = 2, 00072 }; 00073 00074 00075 #ifdef __cplusplus 00076 } /* extern "C" */ 00077 #endif 00078 00079 #endif /* CyaSSL_SNIFFER_H */ 00080
Generated on Wed Jul 13 2022 02:33:57 by
1.7.2