Remove trailing whitespace.

Change-Id: Ie92f9ed09119771ef44664801d04d629f3ff9d15
Reviewed-on: https://gerrit.detact.fox.local/8795
Reviewed-by: Hylke Vellinga <vellinga@fox-it.com>
Tested-by: Jenkins <jenkins@ivar.dev.fox.local>
Move IpInfo and TcpInfo type definitions from sniffer.c to to sniffer.h

Change-Id: If629d2ab60af1d40713c9645901df5f06ecdf14e
Reviewed-on: https://gerrit.detact.fox.local/8796
Tested-by: Jenkins <jenkins@ivar.dev.fox.local>
Reviewed-by: Hylke Vellinga <vellinga@fox-it.com>
Split SnifferSession* CreateSession into CreateBareSession (which creates a
session and ties it to a given SnifferServer) and CreateSession (which does
the rest of the old functionality, including storing the details in the
sessionlists).  Also, expose CreateBareSession function to library users.

Change-Id: Ieb361ac6228396d8339678e4aa58b17fd6057c09
Reviewed-on: https://gerrit.detact.fox.local/8809
Tested-by: Jenkins <jenkins@ivar.dev.fox.local>
Reviewed-by: Hylke Vellinga <vellinga@fox-it.com>
Split the oddly named ssl_SetPrivateKey into CreateSnifferServer (which
creates an unbound SnifferServer with given private key etc) and
ssl_SetPrivateKey (which calls CreateSnifferServer and does the rest of the
original function's function).  Also expose the CreateSnifferServer and
FreeSnifferServer/FreeSnifferSession functions.

Change-Id: I6c4f5945ea5b22c32f6108ad335d79a6b889c06f
Reviewed-on: https://gerrit.detact.fox.local/8810
Tested-by: Jenkins <jenkins@ivar.dev.fox.local>
Reviewed-by: Jasper Spaans <spaans@fox-it.com>
Expose CheckPreRecord (part of the sniffer); make it not do anything with
the sessiontable if tcpInfo == NULL.

Change-Id: I7cc767c3d6b463cf1bfe51a793a48877116ebfc3
Reviewed-on: https://gerrit.detact.fox.local/8811
Reviewed-by: Jasper Spaans <spaans@fox-it.com>
Tested-by: Jenkins <jenkins@ivar.dev.fox.local>
Add two helper functions for the sniffer module, SetSessionDirection and
IsSessionFatal.  Expose them as well.

Change-Id: I4fa4a193be8d7abcf3a196e078519de81757526c
Reviewed-on: https://gerrit.detact.fox.local/8813
Tested-by: Jenkins <jenkins@ivar.dev.fox.local>
Reviewed-by: Jasper Spaans <spaans@fox-it.com>
Expose ProcessMessage SSL sniffer function.

Change-Id: I9a3a7e83d1c300a5714e6e9c32546b1ef7c383be
Reviewed-on: https://gerrit.detact.fox.local/8814
Tested-by: Jenkins <jenkins@ivar.dev.fox.local>
Reviewed-by: Jasper Spaans <spaans@fox-it.com>