1 /**************************************************************************** 2 * 3 * Copyright (C) 2014-2021 Cisco and/or its affiliates. All rights reserved. 4 * Copyright (C) 2003-2013 Sourcefire, Inc. 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License Version 2 as 8 * published by the Free Software Foundation. You may not use, modify or 9 * distribute this program under any other version of the GNU General 10 * Public License. 11 * 12 * This program is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 * GNU General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, write to the Free Software 19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 20 * 21 ****************************************************************************/ 22 23 /** 24 ** @file imap_buffer_dump.h 25 ** 26 ** @author Vishnu Sriram <visriram@cisco.com> 27 ** 28 ** @brief This file contains structures and functions for 29 ** dumping buffers used during IMAP inspection. 30 */ 31 32 #ifndef __IMAP_BUFFER_DUMP_H__ 33 #define __IMAP_BUFFER_DUMP_H__ 34 35 #include "preprocids.h" 36 37 #ifdef DUMP_BUFFER 38 39 typedef enum { 40 IMAP_CLIENT_DUMP, 41 IMAP_SERVER_DUMP, 42 IMAP_CLIENT_CMD_DUMP, 43 IMAP_SERVER_BODY_DATA_DUMP 44 } IMAP_BUFFER_DUMP; 45 46 void dumpBuffer(IMAP_BUFFER_DUMP type, const uint8_t *content, uint16_t len); 47 void dumpBufferInit(void); 48 TraceBuffer *getIMAPBuffers(); 49 50 #endif 51 52 #endif 53