]> git.ipfire.org Git - thirdparty/suricata.git/log
thirdparty/suricata.git
6 years agorust/ike2: free destate on tx free 3511/head
Victor Julien [Mon, 15 Oct 2018 18:53:14 +0000 (20:53 +0200)] 
rust/ike2: free destate on tx free

Bug #2604

6 years agorust: fix (again) out of tree builds
Jason Ish [Mon, 15 Oct 2018 13:47:56 +0000 (07:47 -0600)] 
rust: fix (again) out of tree builds

As the generated Cargo.toml is shipped as part of a release
tarball, build from the source directory but set the cargo
CARGO_TARGET_DIR to the build directory.

6 years agodoc: remove deprecated force-md5 flag from userguide
Pascal Delalande [Fri, 12 Oct 2018 19:32:13 +0000 (21:32 +0200)] 
doc: remove deprecated force-md5 flag from userguide

6 years agoAdded new classifications to classification.conf
Travis Green [Tue, 9 Oct 2018 17:16:59 +0000 (11:16 -0600)] 
Added new classifications to classification.conf

Added classifications from rule-writing community feedback.

6 years agorust/smb: suppress noisy messages
Victor Julien [Mon, 15 Oct 2018 08:38:00 +0000 (10:38 +0200)] 
rust/smb: suppress noisy messages

6 years agoeve/json: introduce community flow id 3507/head
Victor Julien [Thu, 7 Dec 2017 10:29:06 +0000 (11:29 +0100)] 
eve/json: introduce community flow id

Add support for community flow id, meant to give a records a
predictable flow id that can be used to match records to
output of other tools.

Takes a 'seed' that needs to be same across sensors and tools
to make the id less predictable.

6 years agoeve/json: handle common options in central function
Victor Julien [Tue, 9 Oct 2018 12:08:56 +0000 (14:08 +0200)] 
eve/json: handle common options in central function

6 years agoeve/json: move common settings into it's own struct
Victor Julien [Tue, 9 Oct 2018 11:34:17 +0000 (13:34 +0200)] 
eve/json: move common settings into it's own struct

6 years agonfs: use common json output structures
Victor Julien [Tue, 9 Oct 2018 15:19:54 +0000 (17:19 +0200)] 
nfs: use common json output structures

6 years agosmb: use common json output structures
Victor Julien [Tue, 9 Oct 2018 14:39:21 +0000 (16:39 +0200)] 
smb: use common json output structures

6 years agoeve/json: add common helper funcs
Victor Julien [Tue, 9 Oct 2018 14:39:05 +0000 (16:39 +0200)] 
eve/json: add common helper funcs

Add simple helper funcs for option-less loggers

6 years agoeve/flow: minor cleanups
Victor Julien [Tue, 9 Oct 2018 09:03:35 +0000 (11:03 +0200)] 
eve/flow: minor cleanups

6 years agohash/sha1: optimize by avoiding mem alloc
Victor Julien [Tue, 9 Oct 2018 07:25:20 +0000 (09:25 +0200)] 
hash/sha1: optimize by avoiding mem alloc

Don't allocate an output buffer for each call. These buffers
would have the exact same size every time.

6 years agotravis: update rust to 1.29.1, add auto & disabled tests
Victor Julien [Mon, 8 Oct 2018 18:56:54 +0000 (20:56 +0200)] 
travis: update rust to 1.29.1, add auto & disabled tests

6 years agorust: enable by default 3500/head
Victor Julien [Sun, 7 Oct 2018 07:14:06 +0000 (09:14 +0200)] 
rust: enable by default

Remove 'experimental' label for Rust, and enable it by default if
rustc and cargo (and libjansson) are available.

Add rustc and cargo versions to the build-info.

6 years agoconfigure: fix and cleanup nss and nspr detection
Victor Julien [Mon, 8 Oct 2018 11:07:38 +0000 (13:07 +0200)] 
configure: fix and cleanup nss and nspr detection

6 years agosmb/dcerpc: remove now unused ssn2maxsize_map 3498/head
Victor Julien [Sat, 6 Oct 2018 13:45:40 +0000 (15:45 +0200)] 
smb/dcerpc: remove now unused ssn2maxsize_map

6 years agosmb/dcerpc: clean up and unify DCERPC probe logic
Victor Julien [Sat, 6 Oct 2018 13:42:18 +0000 (15:42 +0200)] 
smb/dcerpc: clean up and unify DCERPC probe logic

6 years agosmb2/dcerpc: probe if response data is dcerpc
Victor Julien [Wed, 3 Oct 2018 17:55:46 +0000 (19:55 +0200)] 
smb2/dcerpc: probe if response data is dcerpc

If we missed the tree connect we can't know for sure if we're
reading from a (DCERPC) PIPE or not. In this case probe the data
to see if it looks like DCERPC.

If the detection succeeds, use a special 'suricata::dcerpc' service
in the TX.

Simplify handling of DCERPC records that cross records

Update logging for the response only TXs.

6 years agosmb2: skip rest of READ response if status is not success
Victor Julien [Mon, 13 Aug 2018 14:53:43 +0000 (16:53 +0200)] 
smb2: skip rest of READ response if status is not success

6 years agouserguide: update hyperscan documentation 3496/head
jason taylor [Wed, 3 Oct 2018 19:32:20 +0000 (15:32 -0400)] 
userguide: update hyperscan documentation

Signed-off-by: jason taylor <jtfas90@gmail.com>
6 years agorust/applayer: use correct return type for Parser
Victor Julien [Wed, 3 Oct 2018 19:13:31 +0000 (21:13 +0200)] 
rust/applayer: use correct return type for Parser

The mismatch between the types would randomly lead to the return code
of the Rust parser to be not correctly handled over the C/Rust
boundary. This would lead to the API considering a parser to be in
error state when it was not.

6 years agoafpacket: fix formatting of errors
Victor Julien [Wed, 3 Oct 2018 20:50:02 +0000 (22:50 +0200)] 
afpacket: fix formatting of errors

6 years agodns: shrink per flow state by improving layout 3493/head
Victor Julien [Sun, 30 Sep 2018 07:37:24 +0000 (09:37 +0200)] 
dns: shrink per flow state by improving layout

6 years agodetect/ttl: major clean up of ttl code
Victor Julien [Sat, 29 Sep 2018 07:44:06 +0000 (09:44 +0200)] 
detect/ttl: major clean up of ttl code

Redo unittests using FAIL/PASS macros
Switch parsing to pcre_copy_substring.
Misc cleanups.

6 years agospelling: fixing minor spelling mistakes
Victor Julien [Sat, 29 Sep 2018 07:42:14 +0000 (09:42 +0200)] 
spelling: fixing minor spelling mistakes

6 years agoyaml: fix typo
Victor Julien [Fri, 28 Sep 2018 19:51:08 +0000 (21:51 +0200)] 
yaml: fix typo

6 years agoconfigure: Fixed "no" output for XDP, libnss, libnspr
Hilko Bengen [Tue, 25 Sep 2018 12:16:50 +0000 (14:16 +0200)] 
configure: Fixed "no" output for XDP, libnss, libnspr

6 years agosuricata: file existence check (bug #2615)
Danny Browning [Tue, 18 Sep 2018 16:05:03 +0000 (10:05 -0600)] 
suricata: file existence check (bug #2615)

Files and directories passed via command line option -r should be checked for
existence during command line parsing and not start additional suricata
functionality.

6 years agoconfig: added ja3 to tls custom logging example 3492/head
jason taylor [Fri, 28 Sep 2018 20:40:01 +0000 (16:40 -0400)] 
config: added ja3 to tls custom logging example

Signed-off-by: jason taylor <jtfas90@gmail.com>
6 years agotlslog: don't log as "resumed" without ServerHello 3488/head
Mats Klepsland [Fri, 21 Sep 2018 06:03:26 +0000 (08:03 +0200)] 
tlslog: don't log as "resumed" without ServerHello

Don't log a session as "resumed" if a ServerHello record has not been
seen. This makes sure that incomplete TLS sessions where the ClientHello
contains a session ticket, is not logged as a session resumption.

6 years agooutput-json-tls: don't log as "resumed" without ServerHello
Mats Klepsland [Fri, 21 Sep 2018 05:57:34 +0000 (07:57 +0200)] 
output-json-tls: don't log as "resumed" without ServerHello

Don't log a session as "resumed" if a ServerHello record has not been
seen. This makes sure that incomplete TLS sessions where the ClientHello
contains a session ticket, is not logged as a session resumption.

6 years agoapp-layer-ssl: remove unnecessary length check
Mats Klepsland [Fri, 21 Sep 2018 05:25:19 +0000 (07:25 +0200)] 
app-layer-ssl: remove unnecessary length check

We already check that empty extensions are not decoded, so this length
check is not needed.

6 years agosetup-app-layer: support tests in tests/ 3487/head
Victor Julien [Wed, 19 Sep 2018 19:25:16 +0000 (21:25 +0200)] 
setup-app-layer: support tests in tests/

6 years agosetup-app-layer.py: integrate detect buffer setup
Jason Ish [Wed, 19 Sep 2018 05:51:37 +0000 (23:51 -0600)] 
setup-app-layer.py: integrate detect buffer setup

Add --detect to setup a detect buffer.

Obsoletes setup-app-layer-detect.sh.

6 years agorust: app-layer detect template for rust parsers
Jason Ish [Wed, 19 Sep 2018 17:15:47 +0000 (11:15 -0600)] 
rust: app-layer detect template for rust parsers

6 years agosetup-app-layer.py: attempt to cd into correct directory
Jason Ish [Wed, 19 Sep 2018 05:01:08 +0000 (23:01 -0600)] 
setup-app-layer.py: attempt to cd into correct directory

- If in src, cd to ..
- Error out early if the current directory does not look like a
  Suricata source directory.

6 years agorust app layer template: functions to get buffers
Jason Ish [Wed, 19 Sep 2018 04:35:20 +0000 (22:35 -0600)] 
rust app layer template: functions to get buffers

Example functions for getting the request and response buffers.
Useful for running detection on the decoded buffers.

6 years agorust template parser: sample pcap
Jason Ish [Tue, 18 Sep 2018 15:59:19 +0000 (09:59 -0600)] 
rust template parser: sample pcap

6 years agorust: app-layer template parser and logger
Jason Ish [Fri, 31 Aug 2018 05:20:21 +0000 (23:20 -0600)] 
rust: app-layer template parser and logger

The protocol is a simple request/reply based protocol that can
be hand driven with netcat.

Request  -> 12:Hello World!
Response -> 3:Byte

Its of the format <length>:<message> where length is the length
of the message, not including the length or the delimiter.

6 years agorustfmt.toml: set to 80 char line width
Jason Ish [Tue, 18 Sep 2018 02:35:14 +0000 (20:35 -0600)] 
rustfmt.toml: set to 80 char line width

The rustfmt default is 100, set to 80 to be more inline with
the Suricata C code.

6 years agorust: expose AppLayerParserStateIssetFlag to Rust.
Jason Ish [Thu, 30 Aug 2018 19:14:54 +0000 (13:14 -0600)] 
rust: expose AppLayerParserStateIssetFlag to Rust.

6 years agorust/gen-c-headers: don't attempt to split empty lines
Jason Ish [Thu, 30 Aug 2018 18:55:33 +0000 (12:55 -0600)] 
rust/gen-c-headers: don't attempt to split empty lines

6 years agotemplates: C stub output for Rust logger
Jason Ish [Thu, 30 Aug 2018 15:34:18 +0000 (09:34 -0600)] 
templates: C stub output for Rust logger

6 years agotemplates: C stub template for Rust parser
Jason Ish [Tue, 28 Aug 2018 13:12:45 +0000 (07:12 -0600)] 
templates: C stub template for Rust parser

6 years agodetect/template2: setup script
Victor Julien [Wed, 19 Sep 2018 16:49:15 +0000 (18:49 +0200)] 
detect/template2: setup script

6 years agodetect/template2: template with prefilter (copy of ttl)
Victor Julien [Wed, 19 Sep 2018 16:48:53 +0000 (18:48 +0200)] 
detect/template2: template with prefilter (copy of ttl)

6 years agodecode/template: minor updates
Victor Julien [Wed, 19 Sep 2018 15:07:01 +0000 (17:07 +0200)] 
decode/template: minor updates

6 years agosetup-app-layer-detect: update for tests/ dir
Victor Julien [Wed, 19 Sep 2018 14:34:44 +0000 (16:34 +0200)] 
setup-app-layer-detect: update for tests/ dir

6 years agosetup-simple-detect: update for new tests location
Victor Julien [Wed, 19 Sep 2018 14:17:02 +0000 (16:17 +0200)] 
setup-simple-detect: update for new tests location

6 years agoscripts/setup: remove 'ed' based setup scripts
Jason Ish [Thu, 30 Aug 2018 14:19:35 +0000 (08:19 -0600)] 
scripts/setup: remove 'ed' based setup scripts

Removes:
- setup-app-layer.sh
- setup-app-layer-logger.sh

These have been replaced by setup-app-layer.py.

6 years agosetup-app-layer: rewrite script in Python
Jason Ish [Wed, 29 Aug 2018 17:49:57 +0000 (11:49 -0600)] 
setup-app-layer: rewrite script in Python

The idea being that it is easier to read and maintain than
wrapping ed commands.

This script also merges the parser and logger setup into a single
script, but still allows just the parser, or just the logger
to be generated with flags, --logger and --parser.

6 years agoapp-layer/template: code cleanups
Victor Julien [Tue, 18 Sep 2018 12:50:59 +0000 (14:50 +0200)] 
app-layer/template: code cleanups

6 years agodetect/template: clean up packet keyword
Victor Julien [Tue, 18 Sep 2018 08:11:08 +0000 (10:11 +0200)] 
detect/template: clean up packet keyword

6 years agodetect/template: move test to own file in src/tests/
Victor Julien [Mon, 17 Sep 2018 15:26:52 +0000 (17:26 +0200)] 
detect/template: move test to own file in src/tests/

6 years agodetect/template: switch to v2 API, add MPM
Victor Julien [Mon, 17 Sep 2018 15:15:13 +0000 (17:15 +0200)] 
detect/template: switch to v2 API, add MPM

6 years agodetect/template: clean up unittest
Victor Julien [Mon, 17 Sep 2018 14:44:55 +0000 (16:44 +0200)] 
detect/template: clean up unittest

6 years agodetect/analyzer: disable automatic json output 3486/head
Jacob Masen-Smith [Fri, 11 May 2018 19:27:31 +0000 (12:27 -0700)] 
detect/analyzer: disable automatic json output

EngineAnalysisRules2 was in a strange location where it did not respect
the --engine-analysis flag. It has been moved to the same call location
as EngineAnalysisRules.

6 years agodetect/analyzer: add notes (and warnings)
Victor Julien [Tue, 11 Sep 2018 13:19:29 +0000 (15:19 +0200)] 
detect/analyzer: add notes (and warnings)

6 years agohttp: implement min size stream logic
Victor Julien [Fri, 17 Aug 2018 15:53:16 +0000 (17:53 +0200)] 
http: implement min size stream logic

Update HTTP parser to set the min inspect depth per transaction. This
allows for signatures to have their fast_pattern in the HTTP body,
while still being able to inspect the raw stream reliably with it.

The inspect depth is set per transaction as it:
- depends on the per personality config for min inspect size
- is set to the size of the actual body if it is smaller

After the initial inspection is done, it is set to 0 which disables
the feature for the rest of the transaction.

This removes the rescanning flush logic in commit
7e004f52c60c5e4d7cd8f5ed09491291d18f42d2 and provides an alternative
fix for bug #2522. The old approach caused too much rescanning of
HTTP body data leading to a performance degradation.

Bug #2522

6 years agostream: introduce min inspect depth logic
Victor Julien [Fri, 17 Aug 2018 08:41:51 +0000 (10:41 +0200)] 
stream: introduce min inspect depth logic

Some rules need to inspect both raw stream data and higher level
buffers together. When this higher level buffer is a streaming
buffer itself, the risk of mismatch exists.

This patch allows an app-layer parser to set a 'min inspect depth'.
The value is used by the stream engine to keep at least this
depth worth of data, so that the detection engine can request
all of it for inspection.

For rules that have the SIG_FLAG_FLUSH flag set, data is inspected
not from offset raw_progress, but from raw_progress minus
min_inspect_depth.

At this time this is only used for sigs that have their fast_pattern
in a HTTP body and have raw stream match as well.

6 years agodefrag: break out of loop in linux profile when able to 3479/head
Jason Ish [Fri, 14 Sep 2018 05:11:14 +0000 (23:11 -0600)] 
defrag: break out of loop in linux profile when able to

6 years agodefrag: remove fragments that have complete overlap
Jason Ish [Thu, 13 Sep 2018 19:09:20 +0000 (13:09 -0600)] 
defrag: remove fragments that have complete overlap

Instead of just marking fragments that have been completely
overlapped and won't be part of the assembled packet, remove
them from the fragment tree when detected.

6 years agodefrag: use rb tree to store fragments
Jason Ish [Mon, 3 Sep 2018 22:53:47 +0000 (16:53 -0600)] 
defrag: use rb tree to store fragments

6 years agounittests: fix format-truncation warning
Victor Julien [Thu, 13 Sep 2018 10:18:32 +0000 (12:18 +0200)] 
unittests: fix format-truncation warning

6 years agostream/segments: change packing to reduce size
Victor Julien [Thu, 30 Aug 2018 15:25:54 +0000 (17:25 +0200)] 
stream/segments: change packing to reduce size

Change the way fields are ordered to reduce TcpSegment structure
with 8 bytes.

6 years agostream/segments: keep track of tree right edge
Victor Julien [Tue, 28 Aug 2018 12:02:40 +0000 (14:02 +0200)] 
stream/segments: keep track of tree right edge

Use this in places where we need to use the outer right
edge of our sequence space.

This way we can avoid walking the tree to find this, which
is a potentially expensive operation.

6 years agostreaming/sbb: convert RB_MIN to 'head'
Victor Julien [Wed, 29 Aug 2018 13:31:39 +0000 (15:31 +0200)] 
streaming/sbb: convert RB_MIN to 'head'

6 years agostreaming: keep track of tree 'head'
Victor Julien [Wed, 29 Aug 2018 13:13:31 +0000 (15:13 +0200)] 
streaming: keep track of tree 'head'

6 years agostreaming: use rbtree for stream blocks
Victor Julien [Mon, 27 Aug 2018 06:11:54 +0000 (08:11 +0200)] 
streaming: use rbtree for stream blocks

Switch StreamBufferBlocks implementation to use RBTREE instead of
a list. This makes inserts/removals and lookups a lot cheaper if
the number of data gaps is large.

Use separate compare functions for inserts and regular lookups.
Inserts care about the offset, while lookups care about the blocks
right edge as well.

6 years agostream/sack: optimize SACK size handling
Victor Julien [Mon, 27 Aug 2018 07:01:16 +0000 (09:01 +0200)] 
stream/sack: optimize SACK size handling

Optimize by keeping count during insert/remove instead of
walking the tree per check.

6 years agostream/sack: turn SACK record list into rbtree
Victor Julien [Sun, 26 Aug 2018 08:14:18 +0000 (10:14 +0200)] 
stream/sack: turn SACK record list into rbtree

Convert to rbtree from linked list. These ranges, of which there can
be multiple per packet, are fully controlled by an attacked. The
attacker could craft a stream of packet in such a way that the list
would grow very large. This would make inserts/removals very expensive,
as well as the list walk that is done and size calculation and pruning
operations.

The RBTREE makes inserts/removals much cheaper, at a slight overhead
for 'normal' operations and slightly higher per record memory use.

6 years agostream/segments: speed up inserts
Victor Julien [Mon, 27 Aug 2018 20:55:19 +0000 (22:55 +0200)] 
stream/segments: speed up inserts

Don't try to do a 'fast path' by checking RB_MAX. RB_MAX walks the
tree which means it can be quite expensive. This cost would be paid
for virtually every data segment. The actual insert that follows would
walk the tree again.

Instead, simply insert it. There is a slight cost of the unnecessary
overlap check, but this is much less than the tree walk in a full
tree.

6 years agostream/segments: remove RB_MIN/RB_MAX
Victor Julien [Tue, 28 Aug 2018 09:50:23 +0000 (11:50 +0200)] 
stream/segments: remove RB_MIN/RB_MAX

6 years agostream/segments: optimize overlap tree operations
Victor Julien [Mon, 27 Aug 2018 10:26:11 +0000 (12:26 +0200)] 
stream/segments: optimize overlap tree operations

Now that with the RBTREE we have a properly sorted Segment tree,
where with exact SEQ matches the tree is sorted by payload_len
smallest to largest, we can avoid walking backwards when checking
for overlaps. Our direct RB_PREV either overlaps or not and that
is a reliable verdict for the rest of the tree.

6 years agostream/segments: turn linked list into rbtree
Victor Julien [Thu, 23 Aug 2018 15:27:08 +0000 (17:27 +0200)] 
stream/segments: turn linked list into rbtree

To improve worst case performance turn the segments list into a rbtree.
This greatly improves inserts, lookups and removals if the number of
segments gets very large.

The tree is sorted by the segment sequence number as its primary key.
If 2 segments have the same seq, the payload_len (segment length) is
used. Then the larger segment will be places after the smaller segment.
Exact matches are not added to the tree.

6 years agotree: add scan-build assertions to suppress FPs
Victor Julien [Tue, 11 Sep 2018 12:54:29 +0000 (14:54 +0200)] 
tree: add scan-build assertions to suppress FPs

6 years agotree: add 2-clause BSD licensed tree.h
Victor Julien [Thu, 23 Aug 2018 11:53:03 +0000 (13:53 +0200)] 
tree: add 2-clause BSD licensed tree.h

6 years agostream: expand GAP detection
Victor Julien [Thu, 30 Aug 2018 13:03:34 +0000 (15:03 +0200)] 
stream: expand GAP detection

6 years agodetect/mpm: minor code cleanup
Victor Julien [Tue, 11 Sep 2018 13:16:10 +0000 (15:16 +0200)] 
detect/mpm: minor code cleanup

6 years agodetect/file: fix minor scan-build warnings
Victor Julien [Wed, 12 Sep 2018 12:47:55 +0000 (14:47 +0200)] 
detect/file: fix minor scan-build warnings

6 years agostream/tcp: be more liberal in last_ack
Victor Julien [Sun, 2 Sep 2018 09:34:42 +0000 (11:34 +0200)] 
stream/tcp: be more liberal in last_ack

Don't set even if seq is before next_seq, as this could still be
a valid packet that was sent before the state was reached.

6 years agostream/tcp: add debug statements to state dispatcher
Victor Julien [Sun, 2 Sep 2018 09:34:22 +0000 (11:34 +0200)] 
stream/tcp: add debug statements to state dispatcher

6 years agoapp-layer-ssl: don't decode empty extensions 3478/head
Mats Klepsland [Sat, 15 Sep 2018 12:01:11 +0000 (14:01 +0200)] 
app-layer-ssl: don't decode empty extensions

6 years agodoc: add documentation for Lua function 'TlsGetVersion'
Mats Klepsland [Tue, 28 Aug 2018 20:54:07 +0000 (22:54 +0200)] 
doc: add documentation for Lua function 'TlsGetVersion'

6 years agolua: add function 'TlsGetVersion'
Mats Klepsland [Tue, 28 Aug 2018 20:46:26 +0000 (22:46 +0200)] 
lua: add function 'TlsGetVersion'

Add another function to get TLS version, since 'TlsGetCertInfo' only
works when a TLS session contains a clear text certificate, which is
not the case in TLSv1.3 or when a session is resumed.

6 years agodoc: update tls.version documentation
Mats Klepsland [Mon, 27 Aug 2018 10:43:06 +0000 (12:43 +0200)] 
doc: update tls.version documentation

6 years agodetect-tls-version: add support for 'raw' matching
Mats Klepsland [Mon, 27 Aug 2018 08:13:00 +0000 (10:13 +0200)] 
detect-tls-version: add support for 'raw' matching

Add support for matching a 'raw' TLS version using a hex string, e.g:

  tls.version:0x7f12;

The above example matches TLSv1.3 draft 16.

6 years agodetect-tls-version: add support for TLSv1.3
Mats Klepsland [Thu, 23 Aug 2018 17:31:40 +0000 (19:31 +0200)] 
detect-tls-version: add support for TLSv1.3

6 years agodetect-ssl-version: add support for TLSv1.3
Mats Klepsland [Thu, 23 Aug 2018 16:16:29 +0000 (18:16 +0200)] 
detect-ssl-version: add support for TLSv1.3

6 years agolua: use 'SSLVersionToString' in TlsGetCertInfo()
Mats Klepsland [Wed, 22 Aug 2018 20:08:35 +0000 (22:08 +0200)] 
lua: use 'SSLVersionToString' in TlsGetCertInfo()

6 years agotlslog: add support for TLSv1.3
Mats Klepsland [Wed, 22 Aug 2018 12:25:55 +0000 (14:25 +0200)] 
tlslog: add support for TLSv1.3

6 years agooutput-json-tls: add support for TLSv1.3
Mats Klepsland [Wed, 22 Aug 2018 12:24:42 +0000 (14:24 +0200)] 
output-json-tls: add support for TLSv1.3

6 years agoapp-layer-ssl: add function to get string from version
Mats Klepsland [Tue, 28 Aug 2018 20:25:50 +0000 (22:25 +0200)] 
app-layer-ssl: add function to get string from version

Add 'SSLVersionToString' to get string from version.

6 years agoapp-layer-ssl: add support for earlier TLSv1.3 drafts
Mats Klepsland [Wed, 22 Aug 2018 19:12:40 +0000 (21:12 +0200)] 
app-layer-ssl: add support for earlier TLSv1.3 drafts

Add support for TLSv1.3 draft 1 to draft 21.

6 years agoapp-layer-ssl: add support for TLSv1.3 from draft 22
Mats Klepsland [Wed, 22 Aug 2018 12:21:24 +0000 (14:21 +0200)] 
app-layer-ssl: add support for TLSv1.3 from draft 22

Add support for draft 22 to draft 28 and for the final
version (RFC8446) of TLSv1.3.

6 years agoapp-layer-ssl: add support for session tickets
Mats Klepsland [Tue, 21 Aug 2018 10:58:44 +0000 (12:58 +0200)] 
app-layer-ssl: add support for session tickets

Add support for logging a session as 'resumed' when using a non-empty
session ticket extension in the client hello record.

6 years agoapp-layer-ssl: add better session id support
Mats Klepsland [Tue, 21 Aug 2018 06:21:21 +0000 (08:21 +0200)] 
app-layer-ssl: add better session id support

Verify that the session id from both the client hello record and the
server hello record matches before marking the session as 'resumed'.

6 years agoapp-layer-ssl: decode server hello record
Mats Klepsland [Sun, 19 Aug 2018 18:49:45 +0000 (20:49 +0200)] 
app-layer-ssl: decode server hello record

Decoding server hello is needed to do a better implementation of
session resumption.

6 years agodoc: README.md minor fixes 3470/head
jason taylor [Thu, 30 Aug 2018 14:11:48 +0000 (10:11 -0400)] 
doc: README.md minor fixes

- Capitalization update
- Typo fix
- Spacing update

Signed-off-by: jason taylor <jtfas90@gmail.com>