]> git.ipfire.org Git - thirdparty/suricata.git/log
thirdparty/suricata.git
7 years agoUpdate ntp-parser to 0.2.0 3378/head
Pierre Chifflier [Tue, 15 May 2018 13:33:30 +0000 (15:33 +0200)] 
Update ntp-parser to 0.2.0

7 years agoeve/json/xff - remove check for flow being NULL. 3372/head
Jason Ish [Wed, 9 May 2018 12:50:03 +0000 (06:50 -0600)] 
eve/json/xff - remove check for flow being NULL.

Fix Coverity issue:
** CID 1435535:  Null pointer dereferences  (REVERSE_INULL)
/src/output-json-file.c: 212 in JsonBuildFileInfoRecord()

Where we check a variable for being NULL, when all paths to the
code show that it can't be NULL.

7 years agohtp: cleanup and fix test 3370/head
Victor Julien [Mon, 23 Apr 2018 10:33:02 +0000 (12:33 +0200)] 
htp: cleanup and fix test

7 years agohttp: add tests for header folding
Victor Julien [Thu, 19 Apr 2018 14:31:43 +0000 (16:31 +0200)] 
http: add tests for header folding

To test for https://github.com/OISF/libhtp/issues/159

7 years agohttp: clean up unittest
Victor Julien [Thu, 19 Apr 2018 13:34:51 +0000 (15:34 +0200)] 
http: clean up unittest

7 years agopcap-log: don't divide by 0 on no traffic
Victor Julien [Mon, 7 May 2018 14:20:45 +0000 (16:20 +0200)] 
pcap-log: don't divide by 0 on no traffic

7 years agoeve/alert: use eve-level xff config by default
Jason Ish [Thu, 3 May 2018 18:43:27 +0000 (12:43 -0600)] 
eve/alert: use eve-level xff config by default

The alert section can still have an xff configuration which
will take priority over the eve level xff config.

7 years agoeve/alert: separate xff and metadata configuration
Jason Ish [Thu, 3 May 2018 18:22:33 +0000 (12:22 -0600)] 
eve/alert: separate xff and metadata configuration

Put xff setup and metadata setup into their own
functions.

7 years agoqa/coccinelle: allow to run from non git directory
Jason Ish [Thu, 3 May 2018 17:35:18 +0000 (11:35 -0600)] 
qa/coccinelle: allow to run from non git directory

For example, when I put the contents of a git worktree into
a Docker image for a test build .git will not be a directory
causing the run_check.sh script to fail.

7 years agoeve/files: use eve-level xff config by default
Jason Ish [Thu, 3 May 2018 15:36:34 +0000 (09:36 -0600)] 
eve/files: use eve-level xff config by default

The files section can still have an xff configuration which
will take priority over the eve level xff config.

7 years agoeve/http: use eve-level xff config by default
Jason Ish [Thu, 3 May 2018 15:31:53 +0000 (09:31 -0600)] 
eve/http: use eve-level xff config by default

The http section can still have an xff configuration which
will take priority over the eve level xff config.

7 years agoeve: use eve-level xff configuration
Jason Ish [Thu, 3 May 2018 15:27:53 +0000 (09:27 -0600)] 
eve: use eve-level xff configuration

If an "xff" configuration section exists on the eve object,
parse and save it for child loggers to use.

7 years agoxff: HttpXFFGetCfg - allow conf to be NULL
Jason Ish [Mon, 30 Apr 2018 23:22:02 +0000 (17:22 -0600)] 
xff: HttpXFFGetCfg - allow conf to be NULL

The code fully handles conf being NULL, and we have other functions
where conf can be NULL.

7 years agoxff: Use XFF configuration in eve and filestore
Maurizio Abba [Mon, 15 Jan 2018 15:59:28 +0000 (15:59 +0000)] 
xff: Use XFF configuration in eve and filestore

XFF configuration is already set in app-layer-htp-xff, and in
output-json-alert. Extending XFF configuration to files and HTTP allow
to get the same behavior as for alerts.

Extend the configuration of filestore json to let filestore metafile
dump be aware of xff. This is available only if write-fileinfo is set
to yes and file-store version is 2.

7 years agoFix segfault when the protocol is anything other than HTTP 3368/head
Elazar Broad [Wed, 2 May 2018 16:38:40 +0000 (12:38 -0400)] 
Fix segfault when the protocol is anything other than HTTP

When a file is transferred over anything other than HTTP, the previously hard-coded HTTP protocol would trigger a non-existent index into htp_list_array_get(), causing a segfault. This patch mimics the logic in detect-lua-extensions.c.

7 years agodetect-tls-cert-fingerprint: fix typo in unittest
Mats Klepsland [Sun, 25 Mar 2018 09:54:01 +0000 (11:54 +0200)] 
detect-tls-cert-fingerprint: fix typo in unittest

7 years agodetect-tls-cert-fingerprint: fix failing unittest
Mats Klepsland [Sun, 25 Mar 2018 09:52:29 +0000 (11:52 +0200)] 
detect-tls-cert-fingerprint: fix failing unittest

Fix unittest that failed with the content validation callback.

7 years agodetect-tls-ja3-hash: add setup callback to lowercase content
Mats Klepsland [Sat, 24 Mar 2018 22:16:40 +0000 (23:16 +0100)] 
detect-tls-ja3-hash: add setup callback to lowercase content

Add setup callback that lowercase the content that follows 'ja3_hash'.

7 years agodetect-tls-ja3-hash: add warning if nocase is used
Mats Klepsland [Sat, 24 Mar 2018 22:15:58 +0000 (23:15 +0100)] 
detect-tls-ja3-hash: add warning if nocase is used

7 years agodetect-tls-cert-serial: add warning if nocase is used
Mats Klepsland [Sat, 24 Mar 2018 22:07:04 +0000 (23:07 +0100)] 
detect-tls-cert-serial: add warning if nocase is used

7 years agodetect-tls-cert-fingerprint: add warning if nocase is used
Mats Klepsland [Sat, 24 Mar 2018 22:00:33 +0000 (23:00 +0100)] 
detect-tls-cert-fingerprint: add warning if nocase is used

7 years agodetect-tls-ja3-hash: add content validation callback
Mats Klepsland [Sat, 24 Mar 2018 12:33:52 +0000 (13:33 +0100)] 
detect-tls-ja3-hash: add content validation callback

Validate that the content that follows the 'ja3_hash' keyword has
the correct length.

7 years agodetect-tls-cert-fingerprint: add setup callback to lowercase content
Mats Klepsland [Sat, 24 Mar 2018 12:00:31 +0000 (13:00 +0100)] 
detect-tls-cert-fingerprint: add setup callback to lowercase content

Add setup callback that lowercase the content that follows
'tls_cert_fingerprint'.

7 years agodetect-tls-cert-fingerprint: add content validation callback
Mats Klepsland [Sat, 24 Mar 2018 11:47:48 +0000 (12:47 +0100)] 
detect-tls-cert-fingerprint: add content validation callback

Validate that the content that follows the 'tls_cert_fingerprint'
keyword is on the correct form and has the correct length.

7 years agodetect-tls-cert-serial: add setup callback to uppercase content
Mats Klepsland [Fri, 23 Mar 2018 23:34:49 +0000 (00:34 +0100)] 
detect-tls-cert-serial: add setup callback to uppercase content

Add setup callback that uppercase the content that follows
'tls_cert_serial'.

7 years agodetect-engine: add DetectEngineCtx to setup callback function
Mats Klepsland [Fri, 23 Mar 2018 23:31:25 +0000 (00:31 +0100)] 
detect-engine: add DetectEngineCtx to setup callback function

Add detect engine context as variable to setup callback function
in 'DetectBufferTypeRegisterSetupCallback'.

7 years agodetect-tls-cert-serial: add content validation callback
Mats Klepsland [Fri, 23 Mar 2018 14:53:08 +0000 (15:53 +0100)] 
detect-tls-cert-serial: add content validation callback

Validate that the content that follows the 'tls_cert_serial' keyword
is on the correct form. If it's longer than two bytes it should be
separated by colons.

7 years agoAdd info about pcap log compression to user guide
Max Fillinger [Thu, 25 Jan 2018 12:54:58 +0000 (13:54 +0100)] 
Add info about pcap log compression to user guide

7 years agoconfigure: Show installation info for liblz4 if not found
Max Fillinger [Thu, 15 Feb 2018 14:57:51 +0000 (15:57 +0100)] 
configure: Show installation info for liblz4 if not found

7 years agoAdd an option for compressing pcap-log files
Max Fillinger [Mon, 15 Jan 2018 09:18:53 +0000 (10:18 +0100)] 
Add an option for compressing pcap-log files

Introduces the option 'outputs.pcap-log.compression' which can be set
to 'none' or 'lz4', plus options to set the compression level and to
enable checksums. SCFmemopen is used to make pcap_dump() write to a
buffer which is then compressed using liblz4.

7 years agoaf-packet: kill some white spaces
Eric Leblond [Thu, 19 Apr 2018 21:16:32 +0000 (23:16 +0200)] 
af-packet: kill some white spaces

7 years agoutil-ioctl: fix a typo in setter message
Eric Leblond [Thu, 19 Apr 2018 14:58:27 +0000 (16:58 +0200)] 
util-ioctl: fix a typo in setter message

7 years agoaf-packet: dump counters when timeout occurs
Eric Leblond [Thu, 19 Apr 2018 17:13:20 +0000 (19:13 +0200)] 
af-packet: dump counters when timeout occurs

When traffic is becoming null (mainly seen in tests) we reach the
situation where there is timeouts in the poll on the socket and
only that. Existing code is then just looping on the poll and
the result is that the packet iface counters are not updated.

This patch calls the dump counter function to be sure to get
the counter right faster (and not only right at exit).

7 years agorules: set default rule dir to suricata-update if bundled
Jason Ish [Sun, 29 Apr 2018 13:33:11 +0000 (07:33 -0600)] 
rules: set default rule dir to suricata-update if bundled

If suricata-update is bundled, set the default-rule-dir
to lib/suricata/rules under the $localstatedir

For now use 2 rule-files section that are renamed depending
on if suricata-update is bundled or not.

7 years agoinstall-rules: use suricata-update if available
Jason Ish [Thu, 26 Apr 2018 13:40:04 +0000 (07:40 -0600)] 
install-rules: use suricata-update if available

If Suricata update was bundled, use it for "install-rules" instead
of curl or wget.

7 years agopython: put some defaults on suricata.config.defaults
Jason Ish [Thu, 26 Apr 2018 13:27:07 +0000 (07:27 -0600)] 
python: put some defaults on suricata.config.defaults

This is a module that can contain installation default. For now
it includes the sysconfdir, and rules data directory for use
by suricata-update.

7 years agorules: install to $datadir/suricata/rules
Jason Ish [Thu, 26 Apr 2018 13:15:39 +0000 (07:15 -0600)] 
rules: install to $datadir/suricata/rules

Common /usr/share/suricata/rules or /usr/local/share/suricata/rules.

The rules provided by the distribution are installed here as part
of the Suricata install process so will always be installed, even
without the use of install-rules.

7 years agowirefuzz: add 'quiet' mode
Victor Julien [Wed, 2 May 2018 07:00:35 +0000 (09:00 +0200)] 
wirefuzz: add 'quiet' mode

Adds -q commandline option to force quiet operation.

7 years agohyperscan: don't abort on payloads > 64k
Victor Julien [Wed, 25 Apr 2018 15:23:45 +0000 (17:23 +0200)] 
hyperscan: don't abort on payloads > 64k

SPM API was recently updated to accept 32 bit length fields instead of
16 bits. This could trigger a BUG_ON in the hyperscan implementation.

7 years agogcc8: fix format truncation warnings 3354/head
Victor Julien [Tue, 24 Apr 2018 10:01:40 +0000 (12:01 +0200)] 
gcc8: fix format truncation warnings

7 years agoconfigure: fix error hw timestamp check
Eric Leblond [Sat, 14 Apr 2018 15:21:45 +0000 (17:21 +0200)] 
configure: fix error hw timestamp check

This fixes #2469

7 years agofile_data/http: inspect cleanup 3352/head
Victor Julien [Sun, 4 Jun 2017 13:40:50 +0000 (15:40 +0200)] 
file_data/http: inspect cleanup

7 years agostream-tcp: fix stream depth computation
Eric Leblond [Fri, 20 Apr 2018 17:23:21 +0000 (19:23 +0200)] 
stream-tcp: fix stream depth computation

The stream depth computation was partly done with the stream_config
depth instead of using the value in the TCP session. As a result,
some configuration were resulting in abnormal behavior.

In particular, when stream depth was 0 and the file store depth was
not 0, Suricata was stopping the streaming on the flow as soon as
the filestore was started.

Reported-by: Pascal Delalande <pdl35@free.fr>
7 years agofile: update logger API to log direction
Eric Leblond [Thu, 19 Apr 2018 09:41:40 +0000 (11:41 +0200)] 
file: update logger API to log direction

By adding the flow direction to the logger we can have an accurate
logging of fileinfo events that has source and destination IP
correctly set.

7 years agoapp-layer-ftp: fill direction of transfer
Eric Leblond [Thu, 19 Apr 2018 12:32:51 +0000 (14:32 +0200)] 
app-layer-ftp: fill direction of transfer

This is required to return the file when asked with one direction.

7 years agodetect: fix buffer length to uint32
Maurizio Abba [Tue, 10 Apr 2018 14:37:41 +0000 (15:37 +0100)] 
detect: fix buffer length to uint32

There is a difference in the size of the buffer length as passed from
the content buffers (cfr HttpReassembledBody.buffer_len) and the buflen
variable passed to mpm primitives. This can cause a misdetection
whenever the bufferlen is multiple of 65536 (as uint16(X*65536) == 0).
Increasing the buflen variable type to uint32 solves the issue (this
does not cause any issue with primitives, they all accept uint32).

7 years agofiles: properly close files on flow timeout 3336/head
Victor Julien [Fri, 6 Apr 2018 10:57:24 +0000 (12:57 +0200)] 
files: properly close files on flow timeout

If a file transfer stops on flow timeout, it won't be closed or
truncated. This patch makes sure that in such cases the files
are indeed truncated. This fixes the filestore-v2 output module,
as that requires a sha256 for storing the partial file correctly.

7 years agonfs4: support records wrapped in GSSAPI integrity 3335/head
Victor Julien [Wed, 21 Mar 2018 15:11:40 +0000 (16:11 +0100)] 
nfs4: support records wrapped in GSSAPI integrity

7 years agonfs4: fix attr parsing corner case
Victor Julien [Wed, 21 Mar 2018 14:52:44 +0000 (15:52 +0100)] 
nfs4: fix attr parsing corner case

7 years agonfs4: implement COMMIT parsing and handling
Victor Julien [Tue, 20 Mar 2018 08:43:17 +0000 (09:43 +0100)] 
nfs4: implement COMMIT parsing and handling

7 years agonfs4: parse GSSAPI init
Victor Julien [Tue, 20 Mar 2018 08:36:47 +0000 (09:36 +0100)] 
nfs4: parse GSSAPI init

7 years agonfs4: create link support
Victor Julien [Mon, 19 Mar 2018 19:52:28 +0000 (20:52 +0100)] 
nfs4: create link support

7 years agonfs4: initial implementation
Victor Julien [Fri, 16 Mar 2018 11:24:51 +0000 (12:24 +0100)] 
nfs4: initial implementation

Implements record parsing and file extraction for READs and WRITEs.

Defines all types from RFC 7530.

7 years agonfs/rpc: add parser for GSSAPI Integrity records
Victor Julien [Wed, 21 Mar 2018 14:53:15 +0000 (15:53 +0100)] 
nfs/rpc: add parser for GSSAPI Integrity records

7 years agoflow: track flow for ip proto 41
Victor Julien [Thu, 23 Nov 2017 17:24:41 +0000 (18:24 +0100)] 
flow: track flow for ip proto 41

7 years agoeve/netflow: only log response record if we've seen response pkts
Victor Julien [Tue, 3 Apr 2018 12:26:49 +0000 (14:26 +0200)] 
eve/netflow: only log response record if we've seen response pkts

7 years agoflow: track flow for ICMP
Victor Julien [Wed, 6 Dec 2017 16:08:44 +0000 (17:08 +0100)] 
flow: track flow for ICMP

Change packet layout to allow for expected counterpart type.

7 years agounified2: address strict aliasing issue 3334/head
Victor Julien [Wed, 4 Apr 2018 11:49:35 +0000 (13:49 +0200)] 
unified2: address strict aliasing issue

7 years agodecode/ipv6: expose addr as 'struct in6_addr' as well
Victor Julien [Wed, 4 Apr 2018 11:28:29 +0000 (13:28 +0200)] 
decode/ipv6: expose addr as 'struct in6_addr' as well

7 years agomingw: minor compile warning fixes
Victor Julien [Wed, 4 Apr 2018 10:43:17 +0000 (12:43 +0200)] 
mingw: minor compile warning fixes

7 years agotests/detect-engine-hsbd: deinit det_ctx threads
Giuseppe Longo [Tue, 3 Apr 2018 08:45:34 +0000 (10:45 +0200)] 
tests/detect-engine-hsbd: deinit det_ctx threads

7 years agodetect-engine: free events
Giuseppe Longo [Tue, 3 Apr 2018 08:44:42 +0000 (10:44 +0200)] 
detect-engine: free events

Events are stored in a detection engine but actually
they are not freed.

7 years agosmb: use inspect API v2 for smb keywords
Victor Julien [Sun, 1 Apr 2018 10:33:10 +0000 (12:33 +0200)] 
smb: use inspect API v2 for smb keywords

Simplies code and supports transforms.

7 years agompm/hs: fix minor coverity warning 3331/head
Victor Julien [Tue, 3 Apr 2018 10:10:46 +0000 (12:10 +0200)] 
mpm/hs: fix minor coverity warning

CID 1428797 (#1 of 1): Unchecked return value (CHECKED_RETURN)
    check_return: Calling HashTableAdd without checking return value
    (as is done elsewhere 5 out of 6 times).

7 years agoconfigure: fix small issue with libevent check
Victor Julien [Tue, 3 Apr 2018 10:06:37 +0000 (12:06 +0200)] 
configure: fix small issue with libevent check

7 years agodoc: add lua directory to Makefile
Eric Leblond [Tue, 3 Apr 2018 09:09:55 +0000 (11:09 +0200)] 
doc: add lua directory to Makefile

7 years agodoc/lua: small update to the usage intro
Victor Julien [Tue, 3 Apr 2018 08:13:43 +0000 (10:13 +0200)] 
doc/lua: small update to the usage intro

7 years agodoc: document lua function about flow var
Eric Leblond [Fri, 16 Feb 2018 08:22:35 +0000 (09:22 +0100)] 
doc: document lua function about flow var

7 years agodoc: add a lua support top level section
Eric Leblond [Fri, 16 Feb 2018 07:52:51 +0000 (08:52 +0100)] 
doc: add a lua support top level section

Both output and signature are using lua. So lua functions should
be displayed in a single section.

7 years agodoc: document lua TLS functions
Eric Leblond [Thu, 15 Feb 2018 11:32:45 +0000 (12:32 +0100)] 
doc: document lua TLS functions

7 years agodoc: minor updates (tls custom, TODO removal, ftp/smb file rules)
Pascal Delalande [Sat, 31 Mar 2018 16:20:16 +0000 (18:20 +0200)] 
doc: minor updates (tls custom, TODO removal, ftp/smb file rules)

7 years agodetect/pktvar: clean up keyword parsing
Victor Julien [Fri, 30 Mar 2018 11:36:59 +0000 (13:36 +0200)] 
detect/pktvar: clean up keyword parsing

7 years agodoc: add ntlmssp, kerberos and other setup fields
Victor Julien [Fri, 30 Mar 2018 08:24:33 +0000 (10:24 +0200)] 
doc: add ntlmssp, kerberos and other setup fields

7 years agolua output: Update example script to match style of user doc examples
Richard Sailer [Fri, 16 Mar 2018 17:34:43 +0000 (18:34 +0100)] 
lua output: Update example script to match style of user doc examples

7 years agolua output doc: Use more descriptive variable names in the examples
Richard Sailer [Fri, 16 Mar 2018 17:43:15 +0000 (18:43 +0100)] 
lua output doc: Use more descriptive variable names in the examples

This also removes the "args" parameter of the hooking functions in the examples,
since this parameter is unused in all functions.
It would not be very helpful anyways since 3 of the 4 functions don't get passed
any parameters. The only exception is init() which gets a table containing:
  script_api_ver = 1

7 years agolua output doc: Add explaining introduction text
Richard Sailer [Fri, 16 Mar 2018 17:39:07 +0000 (18:39 +0100)] 
lua output doc: Add explaining introduction text

7 years agodoc: fix json formatting in smb doc
Victor Julien [Fri, 30 Mar 2018 07:29:48 +0000 (09:29 +0200)] 
doc: fix json formatting in smb doc

7 years agoPrint syslog format with SCLogDebug() instead of printf()
Alexander Gozman [Thu, 29 Mar 2018 15:55:52 +0000 (15:55 +0000)] 
Print syslog format with SCLogDebug() instead of printf()

7 years agoapp-layer-ssl: remove possibility to overflow HAS_SPACE macro
Mats Klepsland [Wed, 28 Mar 2018 21:26:20 +0000 (23:26 +0200)] 
app-layer-ssl: remove possibility to overflow HAS_SPACE macro

7 years agoapp-layer-ssl: really fix CID 1433623 3323/head
Mats Klepsland [Thu, 29 Mar 2018 15:57:42 +0000 (17:57 +0200)] 
app-layer-ssl: really fix CID 1433623

7 years agodoc: initial smb eve documentation 3321/head
Victor Julien [Thu, 29 Mar 2018 14:20:22 +0000 (16:20 +0200)] 
doc: initial smb eve documentation

7 years agodoc: add by_either to suppress explanation
Victor Julien [Thu, 29 Mar 2018 13:31:47 +0000 (15:31 +0200)] 
doc: add by_either to suppress explanation

7 years agodoc: add smb section to yaml
Victor Julien [Thu, 29 Mar 2018 13:13:35 +0000 (15:13 +0200)] 
doc: add smb section to yaml

7 years agodoc: minor fix
Victor Julien [Thu, 29 Mar 2018 13:13:18 +0000 (15:13 +0200)] 
doc: minor fix

7 years agoapp-layer-ssl: fix use-after-free (CID 1433623)
Mats Klepsland [Wed, 28 Mar 2018 20:29:15 +0000 (22:29 +0200)] 
app-layer-ssl: fix use-after-free (CID 1433623)

Ja3BufferAddValue frees the buffer on error, so there is no point
in doing it twice (use-after-free).

7 years agoapp-layer-ssl: fix use-after-free (CID 14336229)
Mats Klepsland [Wed, 28 Mar 2018 20:25:46 +0000 (22:25 +0200)] 
app-layer-ssl: fix use-after-free (CID 14336229)

Nullify JA3 buffer on free to avoid use-after-free vulnerability.

7 years agotls: work around coverity warnings
Victor Julien [Wed, 28 Mar 2018 13:24:18 +0000 (15:24 +0200)] 
tls: work around coverity warnings

7 years agodoc: add SMB to file extraction. Minor improvements.
Victor Julien [Thu, 29 Mar 2018 11:09:26 +0000 (13:09 +0200)] 
doc: add SMB to file extraction. Minor improvements.

7 years agodoc: update suricata-update screenshot
Victor Julien [Thu, 29 Mar 2018 11:06:31 +0000 (13:06 +0200)] 
doc: update suricata-update screenshot

7 years agodoc: improve suricata-update docs now that its bundled
Victor Julien [Thu, 29 Mar 2018 08:15:34 +0000 (10:15 +0200)] 
doc: improve suricata-update docs now that its bundled

7 years agodoc: improve making sense of alerts
Victor Julien [Thu, 29 Mar 2018 08:01:50 +0000 (10:01 +0200)] 
doc: improve making sense of alerts

7 years agodoc: add suricata-update to intro for rules
Victor Julien [Wed, 28 Mar 2018 19:37:44 +0000 (21:37 +0200)] 
doc: add suricata-update to intro for rules

7 years agoBug #2466: map SC_LOG_CONFIG level to syslogs LOG_DEBUG 3317/head
Alexander Gozman [Mon, 26 Mar 2018 14:14:48 +0000 (14:14 +0000)] 
Bug #2466: map SC_LOG_CONFIG level to syslogs LOG_DEBUG

7 years agosuricatasc: move lib to suricata.sc
Jason Ish [Mon, 26 Mar 2018 13:55:10 +0000 (07:55 -0600)] 
suricatasc: move lib to suricata.sc

Pull the sc python package under the suricata top level
package. A suricatasc package still exists for compatibility
that pulls in suricata.sc.

7 years agosuricatasc: allow to run from non-standard python locations
Jason Ish [Mon, 26 Mar 2018 13:49:17 +0000 (07:49 -0600)] 
suricatasc: allow to run from non-standard python locations

When we install to a non-standard prefix, the Python modules
are not in the standard location requiring the PYTHONPATH
to be fixed up.

This wa a pre-existing issue with suricatasc, and not due to
the move into the python directory.

7 years agosuricatasc: move into python/
Jason Ish [Mon, 26 Mar 2018 13:38:54 +0000 (07:38 -0600)] 
suricatasc: move into python/

Will be built and installed as part of the Python code used
for suricatactl, which is intended to be the generic place
for all Python utility code that gets installed with Suricata.

No change to suricatasc code.

7 years agoapp-layer-ssl: use BIT_U32 for flags
Mats Klepsland [Thu, 22 Mar 2018 12:27:00 +0000 (13:27 +0100)] 
app-layer-ssl: use BIT_U32 for flags

7 years agoapp-layer-tls-handshake: remove since it is no longer needed
Mats Klepsland [Thu, 22 Mar 2018 11:56:22 +0000 (12:56 +0100)] 
app-layer-tls-handshake: remove since it is no longer needed

Remove this file and all its content, since the functionality
was reimplemented in app-layer-ssl.

7 years agoapp-layer-ssl: reimplement function for decoding certificates
Mats Klepsland [Wed, 21 Mar 2018 22:29:01 +0000 (23:29 +0100)] 
app-layer-ssl: reimplement function for decoding certificates

Do a complete rewrite of the function for decoding the SSL/TLS
certificate from the handshake.

7 years agotls: replace variable in header file with TAILQ_EMPTY()
Mats Klepsland [Thu, 22 Mar 2018 12:17:17 +0000 (13:17 +0100)] 
tls: replace variable in header file with TAILQ_EMPTY()

Use TAILQ_EMPTY to check if a certificate exists instead of
setting two variables in the app-layer-ssl header file for
that purpose only.