mirror of https://github.com/OISF/suricata
app-layer-template-rust: remove C app-layer stub
Remove the app-layer-PROTO stub for Rust based parsers. It is no longer needed as Rust parsers now contain the registration function in Rust. Ticket: 4939pull/8251/head
parent
baa7021ee6
commit
50a787a9a3
@ -1,71 +0,0 @@
|
||||
/* Copyright (C) 2018 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.
|
||||
*/
|
||||
|
||||
/*
|
||||
* TODO: Update \author in this file and app-layer-templaterust.h.
|
||||
* TODO: Implement your app-layer logic with unit tests.
|
||||
* TODO: Remove SCLogNotice statements or convert to debug.
|
||||
*/
|
||||
|
||||
/**
|
||||
* \file
|
||||
*
|
||||
* \author FirstName LastName <yourname@domain>
|
||||
*
|
||||
* TemplateRust application layer detector and parser for learning and
|
||||
* templaterust purposes.
|
||||
*
|
||||
* This templaterust implements a simple application layer for something
|
||||
* like the echo protocol running on port 7.
|
||||
*/
|
||||
|
||||
#include "suricata-common.h"
|
||||
#include "stream.h"
|
||||
#include "conf.h"
|
||||
|
||||
#include "util-unittest.h"
|
||||
|
||||
#include "app-layer-detect-proto.h"
|
||||
#include "app-layer-parser.h"
|
||||
|
||||
#include "app-layer-template-rust.h"
|
||||
#include "rust.h"
|
||||
|
||||
void RegisterTemplateRustParsers(void)
|
||||
{
|
||||
/* TEMPLATE_START_REMOVE */
|
||||
/* Only register if enabled in config. */
|
||||
if (ConfGetNode("app-layer.protocols.template-rust") == NULL) {
|
||||
return;
|
||||
}
|
||||
/* TEMPLATE_END_REMOVE */
|
||||
SCLogNotice("Registering Rust template parser.");
|
||||
rs_template_register_parser();
|
||||
#ifdef UNITTESTS
|
||||
AppLayerParserRegisterProtocolUnittests(IPPROTO_TCP, ALPROTO_TEMPLATE_RUST,
|
||||
TemplateRustParserRegisterTests);
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef UNITTESTS
|
||||
#endif
|
||||
|
||||
void TemplateRustParserRegisterTests(void)
|
||||
{
|
||||
#ifdef UNITTESTS
|
||||
#endif
|
||||
}
|
||||
@ -1,30 +0,0 @@
|
||||
/* Copyright (C) 2018 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 FirstName LastName <yourname@domain>
|
||||
*/
|
||||
|
||||
#ifndef __APP_LAYER_TEMPLATE_RUST_H__
|
||||
#define __APP_LAYER_TEMPLATE_RUST_H__
|
||||
|
||||
void RegisterTemplateRustParsers(void);
|
||||
void TemplateRustParserRegisterTests(void);
|
||||
|
||||
#endif /* __APP_LAYER_TEMPLATE_RUST_H__ */
|
||||
Loading…
Reference in New Issue