]> git.ipfire.org Git - thirdparty/suricata.git/log
thirdparty/suricata.git
8 years agodoc: added ip reputation
Andreas Herz [Sun, 3 Jan 2016 00:04:29 +0000 (01:04 +0100)] 
doc: added ip reputation

8 years agodoc: added ip reputation
Andreas Herz [Sun, 3 Jan 2016 00:04:11 +0000 (01:04 +0100)] 
doc: added ip reputation

8 years agodoc: fixed underline too short error
Andreas Herz [Sat, 2 Jan 2016 23:46:13 +0000 (00:46 +0100)] 
doc: fixed underline too short error

8 years agodoc: Add ssl_state doc
Andi [Thu, 31 Dec 2015 21:12:42 +0000 (22:12 +0100)] 
doc: Add ssl_state doc

See https://redmine.openinfosecfoundation.org/issues/589

8 years agodoc: Document http_host and http_raw_host
Andi [Thu, 31 Dec 2015 20:58:22 +0000 (21:58 +0100)] 
doc: Document http_host and http_raw_host

Added doc for http_host and http_raw_host as mentioned in https://redmine.openinfosecfoundation.org/issues/756

8 years agodoc: ignoring traffic
Jason Ish [Thu, 17 Dec 2015 17:25:08 +0000 (11:25 -0600)] 
doc: ignoring traffic

8 years agodoc: tcmalloc
Jason Ish [Thu, 17 Dec 2015 17:19:34 +0000 (11:19 -0600)] 
doc: tcmalloc

8 years agodoc: runmodes
Jason Ish [Thu, 17 Dec 2015 17:18:04 +0000 (11:18 -0600)] 
doc: runmodes

8 years agodoc: rule profiling
Jason Ish [Thu, 17 Dec 2015 17:14:15 +0000 (11:14 -0600)] 
doc: rule profiling

8 years agodoc: packet profiling
Jason Ish [Thu, 17 Dec 2015 17:12:00 +0000 (11:12 -0600)] 
doc: packet profiling

8 years agodoc: statistics
Jason Ish [Thu, 17 Dec 2015 17:10:16 +0000 (11:10 -0600)] 
doc: statistics

8 years agodoc: tuning considerations
Jason Ish [Thu, 17 Dec 2015 17:07:21 +0000 (11:07 -0600)] 
doc: tuning considerations

8 years agodoc: high performance config
Jason Ish [Thu, 17 Dec 2015 17:05:57 +0000 (11:05 -0600)] 
doc: high performance config

8 years agodoc: making sense of alerts
Jason Ish [Thu, 17 Dec 2015 16:53:59 +0000 (10:53 -0600)] 
doc: making sense of alerts

8 years agodoc: oinkmaster
Jason Ish [Thu, 17 Dec 2015 16:38:48 +0000 (10:38 -0600)] 
doc: oinkmaster

8 years agodoc: snort compatibility
Jason Ish [Sat, 5 Dec 2015 17:38:56 +0000 (11:38 -0600)] 
doc: snort compatibility

8 years agodoc: command line options
Jason Ish [Sat, 5 Dec 2015 15:09:52 +0000 (09:09 -0600)] 
doc: command line options

8 years agodoc: restructure directory layout
Jason Ish [Fri, 4 Dec 2015 18:04:46 +0000 (12:04 -0600)] 
doc: restructure directory layout

8 years agodoc: restructure the rules section a little
Jason Ish [Fri, 4 Dec 2015 17:50:35 +0000 (11:50 -0600)] 
doc: restructure the rules section a little

8 years agodoc: add fixme to broken images
Jason Ish [Fri, 4 Dec 2015 17:45:41 +0000 (11:45 -0600)] 
doc: add fixme to broken images

8 years agodoc: finish off the rules section
Jason Ish [Fri, 4 Dec 2015 16:26:53 +0000 (10:26 -0600)] 
doc: finish off the rules section

8 years agodoc: dnp3 keywords
Jason Ish [Fri, 4 Dec 2015 16:01:32 +0000 (10:01 -0600)] 
doc: dnp3 keywords

8 years agodoc: modbus keyword
Jason Ish [Fri, 4 Dec 2015 15:58:11 +0000 (09:58 -0600)] 
doc: modbus keyword

8 years agodoc: rule profiling
Jason Ish [Fri, 4 Dec 2015 15:55:09 +0000 (09:55 -0600)] 
doc: rule profiling

8 years agodoc: normalized buffers
Jason Ish [Fri, 4 Dec 2015 15:53:19 +0000 (09:53 -0600)] 
doc: normalized buffers

8 years agodoc: tls keywords
Jason Ish [Fri, 4 Dec 2015 15:52:02 +0000 (09:52 -0600)] 
doc: tls keywords

8 years agodoc: live rule swap
Jason Ish [Fri, 4 Dec 2015 15:40:47 +0000 (09:40 -0600)] 
doc: live rule swap

8 years agodoc: adding your own rules
Jason Ish [Fri, 4 Dec 2015 15:38:16 +0000 (09:38 -0600)] 
doc: adding your own rules

8 years agodoc: rule lua scripting
Jason Ish [Fri, 4 Dec 2015 15:22:52 +0000 (09:22 -0600)] 
doc: rule lua scripting

8 years agodoc: rule lua scripting
Jason Ish [Fri, 4 Dec 2015 15:11:52 +0000 (09:11 -0600)] 
doc: rule lua scripting

8 years agodoc: thresholding
Jason Ish [Fri, 4 Dec 2015 15:07:37 +0000 (09:07 -0600)] 
doc: thresholding

8 years agodoc: file-keywords
Jason Ish [Fri, 4 Dec 2015 15:01:18 +0000 (09:01 -0600)] 
doc: file-keywords

8 years agodoc: flowint
Jason Ish [Wed, 2 Dec 2015 21:59:28 +0000 (15:59 -0600)] 
doc: flowint

8 years agodoc: flow-keywords
Jason Ish [Wed, 2 Dec 2015 21:55:17 +0000 (15:55 -0600)] 
doc: flow-keywords

8 years agodoc: pcre
Jason Ish [Wed, 2 Dec 2015 21:24:12 +0000 (15:24 -0600)] 
doc: pcre

8 years agodoc: helper tool to convert from wiki to sphinx
Jason Ish [Wed, 2 Dec 2015 21:23:52 +0000 (15:23 -0600)] 
doc: helper tool to convert from wiki to sphinx

8 years agodoc: header-keywords
Jason Ish [Wed, 2 Dec 2015 13:22:20 +0000 (07:22 -0600)] 
doc: header-keywords

8 years agodoc: fast-pattern
Jason Ish [Wed, 2 Dec 2015 13:12:02 +0000 (07:12 -0600)] 
doc: fast-pattern

8 years agodoc: payload-keywords
Jason Ish [Wed, 2 Dec 2015 12:34:18 +0000 (06:34 -0600)] 
doc: payload-keywords

8 years agodocs: sample of sphinx docs
Jason Ish [Fri, 6 Nov 2015 18:01:15 +0000 (19:01 +0100)] 
docs: sample of sphinx docs

8 years agodetect-tls: make check on fingerprint directional
Jason Ish [Tue, 27 Sep 2016 15:38:42 +0000 (09:38 -0600)] 
detect-tls: make check on fingerprint directional

8 years agotls-json: make tls events direction sensitive
Jason Ish [Tue, 27 Sep 2016 15:07:10 +0000 (09:07 -0600)] 
tls-json: make tls events direction sensitive

Previously the src/dest ips in TLS events would differ between
IDS and IPS modes. Make the header creation direction sensitive
so they are identical in both modes.

8 years agoutil-decode-der-get: fix coverity warning
Mats Klepsland [Mon, 26 Sep 2016 13:53:48 +0000 (15:53 +0200)] 
util-decode-der-get: fix coverity warning

*** CID 1373380:  Control flow issues  (DEADCODE)
/src/util-decode-der-get.c: 126 in UtctimeToTime()
120         year = strtol(yy, NULL, 10);
121         if (year >= 50)
122             snprintf(buf, sizeof(buf), "%i%s", 19, utctime);
123         else if (year < 50)
124             snprintf(buf, sizeof(buf), "%i%s", 20, utctime);
125         else
>>>     CID 1373380:  Control flow issues  (DEADCODE)
>>>     Execution cannot reach this statement: "goto error;".
126             goto error;
127
128         time = GentimeToTime(buf);
129         if (time == -1)
130             goto error;
131

8 years agohttp: removed unused flags
Victor Julien [Tue, 27 Sep 2016 15:10:16 +0000 (17:10 +0200)] 
http: removed unused flags

8 years agoapp-layer: tx counter implementation 2292/head
Eric Leblond [Thu, 26 May 2016 21:11:34 +0000 (23:11 +0200)] 
app-layer: tx counter implementation

This patch adds a transaction counter for application layers
supporting it. Analysis is done after the parsing by the
different application layers.

This result in new data in the stats output, that looks like:
```
    "app-layer": {
      "tx": {
        "dns_udp": 21433,
        "http": 12766,
        "smtp": 0,
        "dns_tcp": 0
      }
    },
```

8 years agoapp-layer: add ThreadVars to AppLayerParserParse
Giuseppe Longo [Mon, 26 Sep 2016 12:55:16 +0000 (14:55 +0200)] 
app-layer: add ThreadVars to AppLayerParserParse

To be able to add a transaction counter we will need a ThreadVars
in the AppLayerParserParse function.
This function is massively used in unittests
and this result in an long commit.

8 years agoapp-layer: add flow counters
Giuseppe Longo [Tue, 26 Apr 2016 12:58:59 +0000 (14:58 +0200)] 
app-layer: add flow counters

This adds per flow counters for all
supported protocols.

This results in new data in stats output that looks like:
```
    "app-layer": {
      "flow": {
        "http": 9310,
        "ftp": 0,
        "smtp": 0,
        "tls": 71,
        "ssh": 0,
        "imap": 0,
        "msn": 0,
        "smb": 170,
        "dcerpc_udp": 0,
        "dns_udp": 870,
        "dcerpc_tcp": 2,
        "dns_tcp": 0
      },
    },
```

8 years agostream: fix depth reached detection 2284/head
Eric Leblond [Tue, 2 Feb 2016 22:44:24 +0000 (23:44 +0100)] 
stream: fix depth reached detection

When a segment only partially fit in streaming depth, the stream
depth reached flag was not set resulting in a continuous
inspection of the rest of the session.

By setting the stream depth reached flag when the segment partially
fit we avoid to reenter the code and we don't take anymore a code
path resulting in the flag not to be set.

8 years agodetect: add detect engine for tls validity keywords
Mats Klepsland [Wed, 21 Sep 2016 10:40:12 +0000 (12:40 +0200)] 
detect: add detect engine for tls validity keywords

Add detect engine for tls validity keywords (tls_cert_notbefore and
tls_cert_notafter).

8 years agodetect-dns: move DetectEngineInspectGenericList to detect-engine.c
Mats Klepsland [Thu, 22 Sep 2016 10:19:41 +0000 (12:19 +0200)] 
detect-dns: move DetectEngineInspectGenericList to detect-engine.c

Move DetectEngineInspectGenericList from detect-engine-dns.c to
detect-engine.c to enable it to be used other places as well.

8 years agolua: add lua functions for certificate validity dates
Mats Klepsland [Tue, 20 Oct 2015 14:03:04 +0000 (16:03 +0200)] 
lua: add lua functions for certificate validity dates

Add functions TlsGetCertNotBefore and TLSGetCertNotAfter to get notBefore
and notAfter fields from TLS certificate in lua scripts.

8 years agoutil-lua: add (wrapper) function to push integer to lua scripts
Mats Klepsland [Tue, 20 Oct 2015 13:59:48 +0000 (15:59 +0200)] 
util-lua: add (wrapper) function to push integer to lua scripts

8 years agolog-tls: add notBefore and notAfter fields to extended output
Mats Klepsland [Tue, 20 Oct 2015 13:08:31 +0000 (15:08 +0200)] 
log-tls: add notBefore and notAfter fields to extended output

Add notBefore and NotAfter fields from TLS certificate to extended tls
log output.

8 years agooutput-json-tls: add notBefore and notAfter fields to extended output
Mats Klepsland [Tue, 20 Oct 2015 12:58:05 +0000 (14:58 +0200)] 
output-json-tls: add notBefore and notAfter fields to extended output

Add notBefore and notAfter fields from TLS certificate to extended JSON
output.

8 years agoutil-time: add function to create a UTC time string
Mats Klepsland [Mon, 14 Mar 2016 09:31:16 +0000 (10:31 +0100)] 
util-time: add function to create a UTC time string

Add function CreateUtcIsoTimeString to create a UTC time string.

8 years agodetect: add tls_cert_notbefore and tls_cert_notafter keywords
Mats Klepsland [Tue, 20 Oct 2015 12:16:13 +0000 (14:16 +0200)] 
detect: add tls_cert_notbefore and tls_cert_notafter keywords

Detection plugin for TLS certificate fields notBefore and notAfter.

Supports equal to, less than, greater than, and range operations
for both keywords. Dates can be represented as either ISO 8601 or
epoch (Unix time).

Examples:
alert tls [...] tls_cert_notafter:1445852105; [...]
alert tls [...] tls_cert_notbefore:<2015-10-22T23:59:59; [...]
alert tls [...] tls_cert_notbefore:>2015-10-22; [...]
alert tls [...] tls_cert_notafter:2000-10-22<>2020-05-15; [...]

8 years agoutil-time: add function to parse a date string based on patterns
Mats Klepsland [Fri, 23 Oct 2015 10:55:34 +0000 (12:55 +0200)] 
util-time: add function to parse a date string based on patterns

Add function SCStringPatternToTime to parse a date string based on an
array of pattern strings.

8 years agoapp-layer-ssl: add validity dates from certificate
Mats Klepsland [Mon, 19 Oct 2015 08:54:40 +0000 (10:54 +0200)] 
app-layer-ssl: add validity dates from certificate

Parsing of certificate validity dates to get notBefore and notAfter
fields.

8 years agoutil-time: add function to convert tm to time_t
Mats Klepsland [Fri, 30 Oct 2015 08:14:54 +0000 (09:14 +0100)] 
util-time: add function to convert tm to time_t

Add function SCMkTimeUtc to convert broken-down time to Unix epoch in UTC.

8 years agoutil-decode-der: decode GeneralizedTime
Mats Klepsland [Mon, 19 Oct 2015 08:19:20 +0000 (10:19 +0200)] 
util-decode-der: decode GeneralizedTime

Decode ASN.1 element type GeneralizedTime in DER-encoded
structures.

8 years agoapp-layer-ssl: use new unit test macros
Mats Klepsland [Fri, 23 Sep 2016 11:52:28 +0000 (13:52 +0200)] 
app-layer-ssl: use new unit test macros

8 years agodetect-ssl-version: use new unit test macros
Mats Klepsland [Fri, 23 Sep 2016 10:55:26 +0000 (12:55 +0200)] 
detect-ssl-version: use new unit test macros

8 years agodetect-tls-version: use new unit test macros
Mats Klepsland [Fri, 23 Sep 2016 10:33:59 +0000 (12:33 +0200)] 
detect-tls-version: use new unit test macros

8 years agodetect-tls-sni: use new unit test macros
Mats Klepsland [Fri, 23 Sep 2016 10:13:29 +0000 (12:13 +0200)] 
detect-tls-sni: use new unit test macros

8 years agodetect: fix faulty tls_sni unittests
Mats Klepsland [Mon, 23 May 2016 12:32:41 +0000 (14:32 +0200)] 
detect: fix faulty tls_sni unittests

8 years agotls: fix faulty unittests
Mats Klepsland [Mon, 23 May 2016 11:34:43 +0000 (13:34 +0200)] 
tls: fix faulty unittests

8 years agocoverty: fix CID 1361873
Mats Klepsland [Wed, 18 May 2016 13:36:25 +0000 (15:36 +0200)] 
coverty: fix CID 1361873

8 years agorules: add rule for HANDSHAKE_INVALID_LENGTH event
Mats Klepsland [Wed, 18 May 2016 13:34:32 +0000 (15:34 +0200)] 
rules: add rule for HANDSHAKE_INVALID_LENGTH event

8 years agotls: set event if input buffer overflows
Mats Klepsland [Wed, 18 May 2016 13:30:49 +0000 (15:30 +0200)] 
tls: set event if input buffer overflows

Set HANDSHAKE_INVALID_LENGTH event if input buffer overflows while
decoding client_hello/server_hello.

8 years agoapp-layer-tls: add name to authors
Mats Klepsland [Mon, 23 May 2016 11:38:01 +0000 (13:38 +0200)] 
app-layer-tls: add name to authors

8 years agotls: add function for decoding client_hello
Mats Klepsland [Wed, 18 May 2016 13:12:48 +0000 (15:12 +0200)] 
tls: add function for decoding client_hello

Add function TLSDecodeHandshakeHello() to enable using the same code
for decoding both client_hello and server_hello.

8 years agorule parsing: check for balanced double quotes
Jason Ish [Mon, 19 Sep 2016 16:43:00 +0000 (10:43 -0600)] 
rule parsing: check for balanced double quotes

If a rule option value starts with a double quote, ensure it
ends with a double quote, exclusive of white space which gets
trimmed anyways.

Catches errors like 'filemagic:"picture" sid:5555555;' reporting
that a missing semicolon may be the error.

8 years agounittests: fix tests
Victor Julien [Sat, 24 Sep 2016 07:22:39 +0000 (09:22 +0200)] 
unittests: fix tests

8 years agounittests: replace SCMutex* calls by FLOWLOCK_*
Victor Julien [Sat, 24 Sep 2016 06:40:33 +0000 (08:40 +0200)] 
unittests: replace SCMutex* calls by FLOWLOCK_*

8 years agofile: remove dead code
Victor Julien [Fri, 23 Sep 2016 11:15:48 +0000 (13:15 +0200)] 
file: remove dead code

8 years agoflow-manager: optimize hash walking 2266/head
Victor Julien [Sat, 14 May 2016 06:56:49 +0000 (08:56 +0200)] 
flow-manager: optimize hash walking

Until now the flow manager would walk the entire flow hash table on an
interval. It would thus touch all flows, leading to a lot of memory
and cache pressure. In scenario's where the number of tracked flows run
into the hundreds on thousands, and the memory used can run into many
hundreds of megabytes or even gigabytes, this would lead to serious
performance degradation.

This patch introduces a new approach. A timestamp per flow bucket
(hash row) is maintained by the flow manager. It holds the timestamp
of the earliest possible timeout of a flow in the list. The hash walk
skips rows with timestamps beyond the current time.

As the timestamp depends on the flows in the hash row's list, and on
the 'state' of each flow in the list, any addition of a flow or
changing of a flow's state invalidates the timestamp. The flow manager
then has to walk the list again to set a new timestamp.

A utility function FlowUpdateState is introduced to change Flow states,
taking care of the bucket timestamp invalidation while at it.

Empty flow buckets use a special value so that we don't have to take
the flow bucket lock to find out the bucket is empty.

This patch also adds more performance counters:

flow_mgr.flows_checked         | Total    | 929
flow_mgr.flows_notimeout       | Total    | 391
flow_mgr.flows_timeout         | Total    | 538
flow_mgr.flows_removed         | Total    | 277
flow_mgr.flows_timeout_inuse   | Total    | 261
flow_mgr.rows_checked          | Total    | 1000000
flow_mgr.rows_skipped          | Total    | 998835
flow_mgr.rows_empty            | Total    | 290
flow_mgr.rows_maxlen           | Total    | 2

flow_mgr.flows_checked: number of flows checked for timeout in the
                        last pass
flow_mgr.flows_notimeout: number of flows out of flow_mgr.flows_checked
                        that didn't time out
flow_mgr.flows_timeout: number of out of flow_mgr.flows_checked that
                        did reach the time out
flow_mgr.flows_removed: number of flows out of flow_mgr.flows_timeout
                        that were really removed
flow_mgr.flows_timeout_inuse: number of flows out of flow_mgr.flows_timeout
                        that were still in use or needed work

flow_mgr.rows_checked: hash table rows checked
flow_mgr.rows_skipped: hash table rows skipped because non of the flows
                        would time out anyway

The counters below are only relating to rows that were not skipped.

flow_mgr.rows_empty:   empty hash rows
flow_mgr.rows_maxlen:  max number of flows per hash row. Best to keep low,
                        so increase hash-size if needed.
flow_mgr.rows_busy:    row skipped because it was locked by another thread

8 years agoflow: simplify timeout logic
Victor Julien [Fri, 13 May 2016 21:04:30 +0000 (23:04 +0200)] 
flow: simplify timeout logic

Instead of a single big FlowProto array containing timeouts separately
for normal and emergency cases, plus the 'Free' pointer for the
protoctx, split up these arrays.

An array made of FlowProtoTimeout for just the normal timeouts and an
mirror of that for emergency timeouts are used through a pointer that
will be set at init and by swapped by the emergency logic. It's swapped
back when the emergency is over.

The free funcs are moved to their own array.

This simplifies the timeout lookup code and shrinks the data that is
commonly used.

8 years agoflow: remove dead code
Victor Julien [Fri, 13 May 2016 20:13:59 +0000 (22:13 +0200)] 
flow: remove dead code

8 years agooffloading: make disabling offloading configurable
Victor Julien [Thu, 22 Sep 2016 10:38:54 +0000 (12:38 +0200)] 
offloading: make disabling offloading configurable

Add a generic 'capture' section to the YAML:

  # general settings affecting packet capture
  capture:
    # disable NIC offloading. It's restored when Suricata exists.
    # Enabled by default
    #disable-offloading: false
    #
    # disable checksum validation. Same as setting '-k none' on the
    # commandline
    #checksum-validation: none

8 years agooffloading: reduce verbosity to 'perf'
Victor Julien [Tue, 21 Jun 2016 08:05:40 +0000 (10:05 +0200)] 
offloading: reduce verbosity to 'perf'

8 years agooffloading: implement restoring settings for BSD
Victor Julien [Tue, 21 Jun 2016 05:59:51 +0000 (07:59 +0200)] 
offloading: implement restoring settings for BSD

8 years agooffloading: restore settings on exit
Victor Julien [Tue, 21 Jun 2016 07:35:33 +0000 (09:35 +0200)] 
offloading: restore settings on exit

8 years agoaf-packet: optionally disable offloading
Victor Julien [Mon, 20 Jun 2016 21:02:02 +0000 (23:02 +0200)] 
af-packet: optionally disable offloading

8 years agooffloading: Linux ethtool offloading support
Victor Julien [Mon, 20 Jun 2016 21:00:38 +0000 (23:00 +0200)] 
offloading: Linux ethtool offloading support

8 years agopcap: optionally disable offloading
Victor Julien [Mon, 20 Jun 2016 18:18:43 +0000 (20:18 +0200)] 
pcap: optionally disable offloading

8 years agonetmap: optionally disable offloading
Victor Julien [Mon, 20 Jun 2016 18:17:30 +0000 (20:17 +0200)] 
netmap: optionally disable offloading

8 years agodevice: add global flag for disabling offloading
Victor Julien [Mon, 20 Jun 2016 18:15:37 +0000 (20:15 +0200)] 
device: add global flag for disabling offloading

Add global flag to disable offloading or just warn on it.

8 years agooffloading: preparation for disabling offload on BSD
Victor Julien [Mon, 20 Jun 2016 18:11:55 +0000 (20:11 +0200)] 
offloading: preparation for disabling offload on BSD

Add functions for setting IFCAP flags.

8 years agodetect-ssl-state: use new unit test macros
Jason Ish [Wed, 21 Sep 2016 20:19:55 +0000 (14:19 -0600)] 
detect-ssl-state: use new unit test macros

8 years agossl: issue 1231 - support ssl state negation
Jason Ish [Tue, 30 Sep 2014 22:20:56 +0000 (16:20 -0600)] 
ssl: issue 1231 - support ssl state negation

Snort compatible SSL state negation. Adds "," as a state
separator, but keeps "|" for compatibility with existing
Suricata rules.

8 years agossl: store current state separately from cumulative state
Jason Ish [Thu, 2 Oct 2014 05:27:39 +0000 (23:27 -0600)] 
ssl: store current state separately from cumulative state

The ssl_state keyword needs the current state, not the cumulative state
in order be compatible with Snort's implementation.

8 years agodetect-pcre: use new unit test macros
Jason Ish [Wed, 21 Sep 2016 15:43:42 +0000 (09:43 -0600)] 
detect-pcre: use new unit test macros

8 years agopcre: fix missing quote in pcre unit test
Jason Ish [Mon, 19 Sep 2016 16:45:05 +0000 (10:45 -0600)] 
pcre: fix missing quote in pcre unit test

8 years agofile-hashing: restore 'force-md5'
Victor Julien [Thu, 22 Sep 2016 08:45:29 +0000 (10:45 +0200)] 
file-hashing: restore 'force-md5'

We don't want to break existing setups.

Do issue a warning that a new option is available.

8 years agofile: introduce common flags handling function
Victor Julien [Thu, 22 Sep 2016 08:26:56 +0000 (10:26 +0200)] 
file: introduce common flags handling function

8 years agocommon: introduce BIT_U16
Victor Julien [Thu, 22 Sep 2016 08:26:12 +0000 (10:26 +0200)] 
common: introduce BIT_U16

8 years agofile-hashing: added configuration options and common parsing code
Duarte Silva [Tue, 24 May 2016 17:58:13 +0000 (19:58 +0200)] 
file-hashing: added configuration options and common parsing code

8 years agofile-hashing: added support for SHA-256 file hashing
Duarte Silva [Fri, 29 Apr 2016 20:23:55 +0000 (22:23 +0200)] 
file-hashing: added support for SHA-256 file hashing

8 years agofile-hashing: added support for SHA-1 file hashing
Duarte Silva [Fri, 29 Apr 2016 19:51:12 +0000 (21:51 +0200)] 
file-hashing: added support for SHA-1 file hashing

8 years agofile-hashing: common code added
Duarte Silva [Fri, 29 Apr 2016 19:23:12 +0000 (21:23 +0200)] 
file-hashing: common code added

Moved and adapted code from detect-filemd5 to util-detect-file-hash,
generalised code to work with SHA-1 and SHA-256 and added necessary
flags and other constants.