diff options
author | Ashlee Young <ashlee@wildernessvoice.com> | 2016-01-20 01:10:01 +0000 |
---|---|---|
committer | Ashlee Young <ashlee@wildernessvoice.com> | 2016-01-20 01:10:11 +0000 |
commit | 19d701ddf07d855128ded0cf2b573ce468e3bdd6 (patch) | |
tree | 0edcd3461ca903c76e431bb7c6348c42a0f12488 /framework/src/suricata/src/app-layer-ftp.h | |
parent | fac6fbefbfad1cf837ddd88bc0d330559c8eb6f9 (diff) |
Removing Suricata and Audit from source repo, and updated build.sh to avoid building suricata. Will re-address this in C release via tar balls.
Change-Id: I3710076f8b7f3313cb3cb5260c4eb0a6834d4f6e
Signed-off-by: Ashlee Young <ashlee@wildernessvoice.com>
Diffstat (limited to 'framework/src/suricata/src/app-layer-ftp.h')
-rw-r--r-- | framework/src/suricata/src/app-layer-ftp.h | 133 |
1 files changed, 0 insertions, 133 deletions
diff --git a/framework/src/suricata/src/app-layer-ftp.h b/framework/src/suricata/src/app-layer-ftp.h deleted file mode 100644 index 4a001290..00000000 --- a/framework/src/suricata/src/app-layer-ftp.h +++ /dev/null @@ -1,133 +0,0 @@ -/* Copyright (C) 2007-2010 Open Information Security Foundation - * - * You can copy, redistribute or modify this Program under the terms of - * the GNU General Public License version 2 as published by the Free - * Software Foundation. - * - * 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 - * version 2 along with this program; if not, write to the Free Software - * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA - * 02110-1301, USA. - */ - -/** - * \file - * - * \author Pablo Rincon Crespo <pablo.rincon.crespo@gmail.com> - */ - -#ifndef __APP_LAYER_FTP_H__ -#define __APP_LAYER_FTP_H__ - -typedef enum { - FTP_COMMAND_UNKNOWN = 0, - FTP_COMMAND_ABOR, - FTP_COMMAND_ACCT, - FTP_COMMAND_ALLO, - FTP_COMMAND_APPE, - FTP_COMMAND_CDUP, - FTP_COMMAND_CHMOD, - FTP_COMMAND_CWD, - FTP_COMMAND_DELE, - FTP_COMMAND_HELP, - FTP_COMMAND_IDLE, - FTP_COMMAND_LIST, - FTP_COMMAND_MAIL, - FTP_COMMAND_MDTM, - FTP_COMMAND_MKD, - FTP_COMMAND_MLFL, - FTP_COMMAND_MODE, - FTP_COMMAND_MRCP, - FTP_COMMAND_MRSQ, - FTP_COMMAND_MSAM, - FTP_COMMAND_MSND, - FTP_COMMAND_MSOM, - FTP_COMMAND_NLST, - FTP_COMMAND_NOOP, - FTP_COMMAND_PASS, - FTP_COMMAND_PASV, - FTP_COMMAND_PORT, - FTP_COMMAND_PWD, - FTP_COMMAND_QUIT, - FTP_COMMAND_REIN, - FTP_COMMAND_REST, - FTP_COMMAND_RETR, - FTP_COMMAND_RMD, - FTP_COMMAND_RNFR, - FTP_COMMAND_RNTO, - FTP_COMMAND_SITE, - FTP_COMMAND_SIZE, - FTP_COMMAND_SMNT, - FTP_COMMAND_STAT, - FTP_COMMAND_STOR, - FTP_COMMAND_STOU, - FTP_COMMAND_STRU, - FTP_COMMAND_SYST, - FTP_COMMAND_TYPE, - FTP_COMMAND_UMASK, - FTP_COMMAND_USER - /** \todo more if missing.. */ -} FtpRequestCommand; -typedef uint32_t FtpRequestCommandArgOfs; - -typedef uint16_t FtpResponseCode; - -enum { - FTP_FIELD_NONE = 0, - - FTP_FIELD_REQUEST_LINE, - FTP_FIELD_REQUEST_COMMAND, - FTP_FIELD_REQUEST_ARGS, - - FTP_FIELD_RESPONSE_LINE, - FTP_FIELD_REPONSE_CODE, - - /* must be last */ - FTP_FIELD_MAX, -}; - -/** used to hold the line state when we have fragmentation. */ -typedef struct FtpLineState_ { - /** used to indicate if the current_line buffer is a malloced buffer. We - * use a malloced buffer, if a line is fragmented */ - uint8_t *db; - uint32_t db_len; - uint8_t current_line_db; - /** we have see LF for the currently parsed line */ - uint8_t current_line_lf_seen; -} FtpLineState; - -/** FTP State for app layer parser */ -typedef struct FtpState_ { - uint8_t *input; - int32_t input_len; - uint8_t direction; - - /* --parser details-- */ - /** current line extracted by the parser from the call to FTPGetline() */ - uint8_t *current_line; - /** length of the line in current_line. Doesn't include the delimiter */ - uint32_t current_line_len; - uint8_t current_line_delimiter_len; - - /* 0 for toserver, 1 for toclient */ - FtpLineState line_state[2]; - - FtpRequestCommand command; - FtpRequestCommandArgOfs arg_offset; - uint32_t port_line_len; - uint32_t port_line_size; - uint8_t *port_line; -} FtpState; - -void RegisterFTPParsers(void); -void FTPParserRegisterTests(void); -void FTPAtExitPrintStats(void); - -#endif /* __APP_LAYER_FTP_H__ */ - |