mirror of https://github.com/OISF/suricata
detect/tls: consolidate validity code
parent
ccdafe6697
commit
998f32f88c
@ -1,58 +0,0 @@
|
|||||||
/* Copyright (C) 2016 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 Mats Klepsland <mats.klepsland@gmail.com>
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "suricata-common.h"
|
|
||||||
#include "suricata.h"
|
|
||||||
#include "decode.h"
|
|
||||||
|
|
||||||
#include "detect.h"
|
|
||||||
#include "detect-engine.h"
|
|
||||||
#include "detect-parse.h"
|
|
||||||
#include "detect-engine-state.h"
|
|
||||||
#include "detect-engine-content-inspection.h"
|
|
||||||
#include "detect-engine-prefilter.h"
|
|
||||||
|
|
||||||
#include "flow-util.h"
|
|
||||||
#include "util-debug.h"
|
|
||||||
#include "util-print.h"
|
|
||||||
#include "flow.h"
|
|
||||||
|
|
||||||
#include "app-layer.h"
|
|
||||||
#include "app-layer-parser.h"
|
|
||||||
#include "app-layer-protos.h"
|
|
||||||
#include "app-layer-ssl.h"
|
|
||||||
#include "detect-engine-tls.h"
|
|
||||||
|
|
||||||
#include "util-unittest.h"
|
|
||||||
#include "util-unittest-helper.h"
|
|
||||||
#include "util-validate.h"
|
|
||||||
|
|
||||||
int DetectEngineInspectTlsValidity(ThreadVars *tv,
|
|
||||||
DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx,
|
|
||||||
const Signature *s, const SigMatchData *smd,
|
|
||||||
Flow *f, uint8_t flags, void *alstate,
|
|
||||||
void *txv, uint64_t tx_id)
|
|
||||||
{
|
|
||||||
return DetectEngineInspectGenericList(tv, de_ctx, det_ctx, s, smd,
|
|
||||||
f, flags, alstate, txv, tx_id);
|
|
||||||
}
|
|
||||||
@ -1,31 +0,0 @@
|
|||||||
/* Copyright (C) 2016 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 Mats Klepsland <mats.klepsland@gmail.com>
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef __DETECT_ENGINE_TLS_H__
|
|
||||||
#define __DETECT_ENGINE_TLS_H__
|
|
||||||
|
|
||||||
int DetectEngineInspectTlsValidity(ThreadVars *tv,
|
|
||||||
DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx,
|
|
||||||
const Signature *s, const SigMatchData *smd,
|
|
||||||
Flow *f, uint8_t flags, void *alstate, void *txv, uint64_t tx_id);
|
|
||||||
|
|
||||||
#endif /* __DETECT_ENGINE_TLS_H__ */
|
|
||||||
Loading…
Reference in New Issue