Skip to content

Commit

Permalink
templates: remove C app-layer templates
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonish authored and victorjulien committed Dec 6, 2022
1 parent 05e1682 commit 8683154
Show file tree
Hide file tree
Showing 14 changed files with 2 additions and 869 deletions.
6 changes: 0 additions & 6 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ noinst_HEADERS = \
app-layer-snmp.h \
app-layer-ssh.h \
app-layer-ssl.h \
app-layer-template.h \
app-layer-tftp.h \
autoconf.h \
build-info.h \
Expand Down Expand Up @@ -321,7 +320,6 @@ noinst_HEADERS = \
detect-tcp-seq.h \
detect-tcp-window.h \
detect-template2.h \
detect-template-buffer.h \
detect-template.h \
detect-template-rust-buffer.h \
detect-threshold.h \
Expand Down Expand Up @@ -426,7 +424,6 @@ noinst_HEADERS = \
output-json-snmp.h \
output-json-ssh.h \
output-json-stats.h \
output-json-template.h \
output-json-template-rust.h \
output-json-tftp.h \
output-json-tls.h \
Expand Down Expand Up @@ -665,7 +662,6 @@ libsuricata_c_a_SOURCES = \
app-layer-snmp.c \
app-layer-ssh.c \
app-layer-ssl.c \
app-layer-template.c \
app-layer-tftp.c \
conf.c \
conf-yaml-loader.c \
Expand Down Expand Up @@ -932,7 +928,6 @@ libsuricata_c_a_SOURCES = \
detect-tcp-seq.c \
detect-tcp-window.c \
detect-template2.c \
detect-template-buffer.c \
detect-template.c \
detect-template-rust-buffer.c \
detect-threshold.c \
Expand Down Expand Up @@ -1037,7 +1032,6 @@ libsuricata_c_a_SOURCES = \
output-json-snmp.c \
output-json-ssh.c \
output-json-stats.c \
output-json-template.c \
output-json-template-rust.c \
output-json-tftp.c \
output-json-tls.c \
Expand Down
4 changes: 0 additions & 4 deletions src/app-layer-detect-proto.c
Original file line number Diff line number Diff line change
Expand Up @@ -915,8 +915,6 @@ static void AppLayerProtoDetectPrintProbingParsers(AppLayerProtoDetectProbingPar
printf(" alproto: ALPROTO_PGSQL\n");
else if (pp_pe->alproto == ALPROTO_TELNET)
printf(" alproto: ALPROTO_TELNET\n");
else if (pp_pe->alproto == ALPROTO_TEMPLATE)
printf(" alproto: ALPROTO_TEMPLATE\n");
else if (pp_pe->alproto == ALPROTO_DNP3)
printf(" alproto: ALPROTO_DNP3\n");
else if (pp_pe->alproto == ALPROTO_BITTORRENT_DHT)
Expand Down Expand Up @@ -1000,8 +998,6 @@ static void AppLayerProtoDetectPrintProbingParsers(AppLayerProtoDetectProbingPar
printf(" alproto: ALPROTO_PGSQL\n");
else if (pp_pe->alproto == ALPROTO_TELNET)
printf(" alproto: ALPROTO_TELNET\n");
else if (pp_pe->alproto == ALPROTO_TEMPLATE)
printf(" alproto: ALPROTO_TEMPLATE\n");
else if (pp_pe->alproto == ALPROTO_DNP3)
printf(" alproto: ALPROTO_DNP3\n");
else if (pp_pe->alproto == ALPROTO_BITTORRENT_DHT)
Expand Down
2 changes: 0 additions & 2 deletions src/app-layer-parser.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
#include "app-layer-mqtt.h"
#include "app-layer-snmp.h"
#include "app-layer-quic.h"
#include "app-layer-template.h"
#include "app-layer-rdp.h"
#include "app-layer-http2.h"

Expand Down Expand Up @@ -1741,7 +1740,6 @@ void AppLayerParserRegisterProtocolParsers(void)
RegisterRFBParsers();
RegisterMQTTParsers();
rs_pgsql_register_parser();
RegisterTemplateParsers();
RegisterRdpParsers();
RegisterHTTP2Parsers();
rs_telnet_register_parser();
Expand Down
5 changes: 0 additions & 5 deletions src/app-layer-protos.c
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,6 @@ const char *AppProtoToString(AppProto alproto)
case ALPROTO_TELNET:
proto_name = "telnet";
break;
case ALPROTO_TEMPLATE:
proto_name = "template";
break;
case ALPROTO_TEMPLATE_RUST:
proto_name = "template-rust";
break;
Expand Down Expand Up @@ -190,8 +187,6 @@ AppProto StringToAppProto(const char *proto_name)
return ALPROTO_PGSQL;
if (strcmp(proto_name, "telnet") == 0)
return ALPROTO_TELNET;
if (strcmp(proto_name, "template") == 0)
return ALPROTO_TEMPLATE;
if (strcmp(proto_name, "template-rust") == 0)
return ALPROTO_TEMPLATE_RUST;
if (strcmp(proto_name,"rdp")==0) return ALPROTO_RDP;
Expand Down
1 change: 0 additions & 1 deletion src/app-layer-protos.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ enum AppProtoEnum {
ALPROTO_MQTT,
ALPROTO_PGSQL,
ALPROTO_TELNET,
ALPROTO_TEMPLATE,
ALPROTO_TEMPLATE_RUST,
ALPROTO_RDP,
ALPROTO_HTTP2,
Expand Down
Loading

0 comments on commit 8683154

Please sign in to comment.