suricata
detect-asn1.h
Go to the documentation of this file.
1 /* Copyright (C) 2007-2010 Open Information Security Foundation
2  *
3  * You can copy, redistribute or modify this Program under the terms of
4  * the GNU General Public License version 2 as published by the Free
5  * Software Foundation.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * version 2 along with this program; if not, write to the Free Software
14  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
15  * 02110-1301, USA.
16  */
17 
18 /**
19  * \file detect-asn1.h
20  *
21  * \author Pablo Rincon Crespo <pablo.rincon.crespo@gmail.com>
22  *
23  * Implements "asn1" keyword
24  */
25 #ifndef __DETECT_ASN1_H__
26 #define __DETECT_ASN1_H__
27 
28 
29 /* Function check flags */
30 #define ASN1_BITSTRING_OVF 0x01
31 #define ASN1_DOUBLE_OVF 0x02
32 #define ASN1_OVERSIZE_LEN 0x04
33 #define ASN1_ABSOLUTE_OFFSET 0x10
34 #define ASN1_RELATIVE_OFFSET 0x20
35 
36 typedef struct DetectAsn1Data_ {
37  uint8_t flags; /* flags indicating the checks loaded */
38  uint32_t oversize_length; /* Length argument if needed */
39  int32_t absolute_offset; /* Length argument if needed */
40  int32_t relative_offset; /* Length argument if needed */
42 
43 /* prototypes */
44 void DetectAsn1Register (void);
45 
46 #endif /* __DETECT_ASN1_H__ */
47 
uint32_t oversize_length
Definition: detect-asn1.h:38
int32_t relative_offset
Definition: detect-asn1.h:40
int32_t absolute_offset
Definition: detect-asn1.h:39
struct DetectAsn1Data_ DetectAsn1Data
void DetectAsn1Register(void)
Registration function for asn1.
Definition: detect-asn1.c:54