From: Michael Altizer (mialtize) Date: Fri, 2 Sep 2016 21:01:23 +0000 (-0400) Subject: Merge pull request #612 in SNORT/snort3 from ftp_print_remove to master X-Git-Tag: 3.0.0-233~271 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=09cb56a3f09b827cbaf8a14fbd89d6d097f33b1e;p=thirdparty%2Fsnort3.git Merge pull request #612 in SNORT/snort3 from ftp_print_remove to master Squashed commit of the following: commit 07e889b0cc3417a2d6a4033cd2617e28a6136c91 Author: Tom Peters Date: Fri Sep 2 11:27:59 2016 -0400 Commented out code related to ftp_config::show() --- diff --git a/src/service_inspectors/ftp_telnet/ftp_bounce_lookup.cc b/src/service_inspectors/ftp_telnet/ftp_bounce_lookup.cc index 835e4e7bf..1cbdfde7b 100644 --- a/src/service_inspectors/ftp_telnet/ftp_bounce_lookup.cc +++ b/src/service_inspectors/ftp_telnet/ftp_bounce_lookup.cc @@ -190,6 +190,8 @@ FTP_BOUNCE_TO* ftp_bounce_lookup_find( return BounceTo; } +// FIXIT-L orphan code until FTP client inspector acquires a show() method +#if 0 /* * Function: ftp_bounce_lookup_first(BOUNCE_LOOKUP *BounceLookup, * int *iError) @@ -272,4 +274,5 @@ FTP_BOUNCE_TO* ftp_bounce_lookup_next(BOUNCE_LOOKUP* BounceLookup, return BounceTo; } +#endif diff --git a/src/service_inspectors/ftp_telnet/ftp_bounce_lookup.h b/src/service_inspectors/ftp_telnet/ftp_bounce_lookup.h index 4133aad7a..969ac5e9d 100644 --- a/src/service_inspectors/ftp_telnet/ftp_bounce_lookup.h +++ b/src/service_inspectors/ftp_telnet/ftp_bounce_lookup.h @@ -39,8 +39,9 @@ int ftp_bounce_lookup_cleanup(BOUNCE_LOOKUP** BounceLookup); int ftp_bounce_lookup_add(BOUNCE_LOOKUP* BounceLookup, const sfip_t* ip, FTP_BOUNCE_TO* BounceTo); FTP_BOUNCE_TO* ftp_bounce_lookup_find(BOUNCE_LOOKUP* BounceLookup, const sfip_t* ip, int* iError); -FTP_BOUNCE_TO* ftp_bounce_lookup_first(BOUNCE_LOOKUP* BounceLookup, int* iError); -FTP_BOUNCE_TO* ftp_bounce_lookup_next(BOUNCE_LOOKUP* BounceLookup, int* iError); +// FIXIT-L orphan code until FTP client inspector acquires a show() method +// FTP_BOUNCE_TO* ftp_bounce_lookup_first(BOUNCE_LOOKUP* BounceLookup, int* iError); +// FTP_BOUNCE_TO* ftp_bounce_lookup_next(BOUNCE_LOOKUP* BounceLookup, int* iError); #endif diff --git a/src/service_inspectors/ftp_telnet/ftp_print.cc b/src/service_inspectors/ftp_telnet/ftp_print.cc index c7934da64..34273ecb9 100644 --- a/src/service_inspectors/ftp_telnet/ftp_print.cc +++ b/src/service_inspectors/ftp_telnet/ftp_print.cc @@ -169,6 +169,8 @@ static void PrintCmdFmt(char* buf, FTP_PARAM_FMT* CmdFmt) PrintCmdFmt(buf, CmdFmt->next_param_fmt); } +// FIXIT-L orphan code until FTP client inspector acquires a show() method +#if 0 int PrintFTPClientConf(FTP_CLIENT_PROTO_CONF* ClientConf) { FTP_BOUNCE_TO* FTPBounce; @@ -219,6 +221,7 @@ int PrintFTPClientConf(FTP_CLIENT_PROTO_CONF* ClientConf) return FTPP_SUCCESS; } +#endif int PrintFTPServerConf(FTP_SERVER_PROTO_CONF* ServerConf) { diff --git a/src/service_inspectors/ftp_telnet/ftp_print.h b/src/service_inspectors/ftp_telnet/ftp_print.h index fef7941a1..413140fd5 100644 --- a/src/service_inspectors/ftp_telnet/ftp_print.h +++ b/src/service_inspectors/ftp_telnet/ftp_print.h @@ -28,7 +28,8 @@ #include "ftpp_ui_config.h" int PrintConfOpt(bool on, const char* Option); -int PrintFTPClientConf(FTP_CLIENT_PROTO_CONF*); +// FIXIT-L orphan code until FTP client inspector acquires a show() method +// int PrintFTPClientConf(FTP_CLIENT_PROTO_CONF*); int PrintFTPServerConf(FTP_SERVER_PROTO_CONF*); #endif