Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2554 commits
Select commit Hold shift + click to select a range
31a96d5
detect: make tenant loading less verbose
victorjulien Dec 23, 2016
f91d490
detect: remove unused flow_locked hint
victorjulien Dec 23, 2016
d8b5bf9
app-layer-parsing: detect malformed input
norg Nov 29, 2016
21bbac5
dns-log: log requests even when there is no response
jasonish Jan 31, 2017
0695ad4
detect-xbits: set documentation URL
regit Jan 30, 2017
1af713d
detect-tls: add url field pointing to doc
regit Jan 30, 2017
c357daf
doc: document the tls_sni keyword
regit Jan 30, 2017
f407d77
detect-tls-sni: add link to documentation
regit Jan 30, 2017
ecf59be
af-packet: add VLAN header when needed in IPS mode
regit Nov 1, 2016
c89ce17
afl: with -Wshadow issues
victorjulien Feb 8, 2017
4683b0e
afl: fix ENIP, switch DNS to UDP and add --afl-dnstcp*
victorjulien Feb 8, 2017
8622242
detect: don't run IP inspection on non-IP packets
victorjulien Feb 8, 2017
b25b067
alert: silence compiler type warning
satta Feb 8, 2017
5e96977
mpm-ac: fix integer overflow on allocation
satta Feb 8, 2017
923d93f
afl: add decoder ipv4 option
victorjulien Feb 9, 2017
fbd6972
afl: improve packet fuzz testing
victorjulien Feb 9, 2017
6bd2652
afl: util script to list crashed series
victorjulien Feb 9, 2017
322c260
afl: minimalistic script to start AFL fuzzers
victorjulien Feb 9, 2017
35488ee
afl: set the packet data so pktlen gets set
jasonish Feb 10, 2017
b56b04f
afl: pass a packet queue to decoder calls
victorjulien Feb 10, 2017
49c41fc
afl: clean up commandline parsing
victorjulien Feb 11, 2017
292baf0
afl: add ethernet and erspan entry points
victorjulien Feb 12, 2017
4a04f81
defrag - take protocol into account during re-assembly
jasonish Feb 5, 2017
20990f7
dns: fix out of bounds read
victorjulien Feb 9, 2017
71710f0
dns: fix outputs with 0-len A/AAAA records
victorjulien Feb 13, 2017
e072a10
changelog: update for 3.2.1 release
victorjulien Feb 15, 2017
113a238
Open 4.0 development branch
victorjulien Feb 16, 2017
be3ee53
detect: remove alproto from keyword registration
victorjulien Dec 23, 2016
a44da9f
detect: simplify SIG_FLAG_STATE_MATCH set logic
victorjulien Oct 17, 2016
bfd4bc8
detect: constify Signature/SigMatch use at runtime
victorjulien Oct 6, 2016
3961377
detect: make setup/free/match funcs static where possible
victorjulien Oct 6, 2016
5e0b0ee
detect: remove unused flags
victorjulien Oct 6, 2016
e2c6e1b
detect-parse: set ipprotos earlier
victorjulien Dec 7, 2016
faadec0
detect file_data: improve error messages
victorjulien Dec 7, 2016
9958048
detect: fix file_data / http_server_body tests
victorjulien Dec 7, 2016
859cb89
detect alert/threshold/tag: sm_list -> sm_array
victorjulien Oct 16, 2016
715ff60
detect: remove unused SIG_FLAG_INIT_PAYLOAD init_flag
victorjulien Oct 17, 2016
5f7e096
detect: shrink inspect engine by using 'id' as state flag
victorjulien Oct 15, 2016
cf42fbf
detect: use InspectEngineFuncPtr in inspect engines
victorjulien Oct 15, 2016
2f87c97
detect: add SigMatch arg to inspect functions
victorjulien Oct 15, 2016
f81b90d
detect: when freeing sig also see sm in inspect engine
victorjulien Oct 15, 2016
1ee32da
detect-engine: memory handling of sm_lists
victorjulien Oct 15, 2016
5a2e568
detect: http lists in engine
victorjulien Oct 15, 2016
747dbf9
detect: dns & tls lists in engine
victorjulien Oct 15, 2016
f5adccb
detect: app-event list in engine
victorjulien Oct 15, 2016
7f7d429
detect: file list in engine
victorjulien Oct 15, 2016
e94a7bd
detect: modbus list in engine
victorjulien Oct 15, 2016
da7c816
detect: enip/cip list in engine
victorjulien Oct 15, 2016
a0fe67a
detect: template list in engine
victorjulien Oct 15, 2016
bd45607
detect: pass SigMatchData to inspect functions
victorjulien Oct 15, 2016
f281481
detect: use detect list passed to generic funcs
victorjulien Oct 15, 2016
8edc954
detect: get rid of Signature::sm_lists
victorjulien Oct 16, 2016
6f7e4ad
detect: improve memory handling & comments
victorjulien Oct 16, 2016
59303d1
threshold: fix and redo tests
victorjulien Oct 16, 2016
4978a7a
detect: reorganize id's in prep of dynamic lists
victorjulien Oct 17, 2016
0a5ae41
detect: shrink Signature::sm_arrays
victorjulien Oct 17, 2016
f370e88
detect: move init only Signature members to init_data
victorjulien Oct 17, 2016
a2b521b
detect-csum: redo tests
victorjulien Oct 16, 2016
debc1a6
detect: dce test fixes and improvements
victorjulien Oct 16, 2016
58e1180
detect: inspect engine setup cleanup
victorjulien Oct 17, 2016
04592ef
detect: buffer type API
victorjulien Dec 14, 2016
779d40c
detect: remove hardcoded sm_list logic from setup
victorjulien Dec 14, 2016
7052f9b
http_request_line: dynamic buffer
victorjulien Oct 17, 2016
6bd3761
file_data: dynamic buffer
victorjulien Dec 14, 2016
e34102d
http_method: make list dynamic
victorjulien Dec 7, 2016
6346a07
http_uri: dynamic buffer
victorjulien Dec 8, 2016
9262fa3
http_response_line: dynamic buffer
victorjulien Dec 8, 2016
54604c7
http_user_agent: dynamic buffer
victorjulien Dec 8, 2016
67b7d97
http_cookie: dynamic buffer
victorjulien Dec 8, 2016
296c275
http_host: dynamic buffer
victorjulien Dec 9, 2016
128b59d
http_raw_host: dynamic buffer
victorjulien Dec 9, 2016
7e3ab4f
http_stat_code: dynamic buffer
victorjulien Dec 9, 2016
b694d96
http_stat_msg: dynamic buffer
victorjulien Dec 9, 2016
e7d5e84
http_header / http_raw_header: dynamic buffers
victorjulien Dec 9, 2016
ee55aef
http_client_body: dynamic buffer
victorjulien Dec 9, 2016
6f867c3
http_raw_uri: dynamic buffer
victorjulien Dec 9, 2016
d2f7797
detect-parse: content modifier cleanup
victorjulien Dec 9, 2016
d9b3ae6
dns: use dynamic buffers
victorjulien Dec 10, 2016
9ba386a
tls: dynamic buffers
victorjulien Dec 10, 2016
cfdd934
dnp3: dynamic buffers/lists
victorjulien Dec 10, 2016
f2393c1
modbus: dynamic buffer
victorjulien Dec 10, 2016
e4bfdd5
cip/enip: dynamic buffer
victorjulien Dec 10, 2016
b68343e
files: use dynamic list
victorjulien Dec 10, 2016
8151208
app-layer-events: dynamic list
victorjulien Dec 11, 2016
40851ee
template: dynamic buffer
victorjulien Dec 12, 2016
49fbd28
detect: cleanup built-in list id's
victorjulien Dec 12, 2016
8bd1422
detect: detect engine registration cleanup
victorjulien Dec 12, 2016
a1465bc
detect-engine-mpm: api cleanup
victorjulien Dec 14, 2016
a9a228a
profiling: fix keyword profiling
victorjulien Dec 15, 2016
7d8a5a7
profiling: honor limit in json rule output
victorjulien Dec 15, 2016
75907fc
profiling: output all sort options for rules
victorjulien Dec 15, 2016
cf9678d
detect: global registery for keyword thread data
victorjulien Dec 19, 2016
aaeeae0
detect: http_header_names sticky buffer keyword
victorjulien Dec 19, 2016
2bb0cae
http_header: move all code into keyword files
victorjulien Dec 19, 2016
5ee68ca
http_header: remove old files
victorjulien Dec 19, 2016
6279ec3
http_header: common detection code
victorjulien Dec 19, 2016
f2fc5a2
http_header: convert to use common code
victorjulien Dec 19, 2016
36535ef
detect: add http_protocol sticky buffer
victorjulien Dec 19, 2016
1087495
detect: http_start sticky buffer
victorjulien Dec 20, 2016
8eac115
app-layer-events: remove unused API options
victorjulien Dec 21, 2016
8b3a71a
tls.store: cleanup
victorjulien Dec 21, 2016
ef149be
tls.store: convert to postmatch
victorjulien Dec 21, 2016
6ef4712
detect: convert old tls keywords to dynamic list
victorjulien Dec 21, 2016
1cacba4
ssl/tls: clean up keywords
victorjulien Dec 22, 2016
a8975c6
detect ssl/tls: use dynamic lists
victorjulien Dec 22, 2016
4ae4fd0
lua: use tls_generic list for ssl/tls
victorjulien Dec 22, 2016
3ee4989
ssh: convert app-layer parser to be tx aware
victorjulien Dec 22, 2016
c412352
ssh: remove single logger limit
victorjulien Dec 22, 2016
a10b2fd
detect: make ssh detection use dynamic list
victorjulien Dec 22, 2016
96b8100
lua: convert lua output to be tx aware
victorjulien Dec 22, 2016
d9a300c
detect: move lua smtp support to dynamic list
victorjulien Dec 22, 2016
402eb64
ftp: parser and ftpbounce update
victorjulien Dec 22, 2016
d318bfc
dcerpc: simplify common detect code
victorjulien Dec 22, 2016
84ba9cf
smb/dcerpc: use tx api
victorjulien Dec 22, 2016
f018ae9
dce: dynamic lists
victorjulien Dec 22, 2016
775e182
detect: remove AppLayerMatch API call
victorjulien Dec 22, 2016
ad23812
detect: remove the AMATCH list
victorjulien Dec 22, 2016
1c02cf4
flow: remove unused Flow::de_state
victorjulien Dec 22, 2016
fe415ae
detect: remove DMATCH list
victorjulien Dec 22, 2016
5bafc64
detect: unify FileMatch API with other calls
victorjulien Dec 23, 2016
073fcbe
detect: move file hash common code
victorjulien Dec 23, 2016
fa1ef15
detect: small API cleanup
victorjulien Dec 23, 2016
14ced15
detect: remove unused state file flag
victorjulien Dec 23, 2016
dfac527
detect: remove unused SIGMATCH_PAYLOAD flag
victorjulien Dec 23, 2016
f1ab6a6
detect: ssh_proto stickybuffer
victorjulien Dec 23, 2016
920709f
detect: ssh_software sticky buffer
victorjulien Dec 23, 2016
43cc06e
detect: use engine version instead of id
victorjulien Oct 26, 2016
22f3205
var-names: expose outside of detect engine
victorjulien Oct 20, 2016
e95a0c1
alert-debug: print flowbit names from VarNameStore
victorjulien Oct 21, 2016
ac42a44
alert-debug: print flowvar/int names
victorjulien Oct 21, 2016
017b16d
detect-pcre: small cleanups
victorjulien Oct 26, 2016
a0bd15a
pcre: support multiple captures
victorjulien Oct 26, 2016
5e39486
pkt-var: use id instead of name pointer
victorjulien Oct 27, 2016
0f708d4
pkt-var: abuse flowvar postmatch logic for pktvars
victorjulien Oct 27, 2016
1ba8c2f
pcre: new way of specifying var names
victorjulien Oct 28, 2016
1a2ad05
eve: log pktvars/flowvars/bits/ints
victorjulien Oct 21, 2016
5ca4a2e
outputs: vars log
victorjulien Oct 28, 2016
996112e
pktvars: same name pktvars, key-value vars
victorjulien Nov 5, 2016
b6e4276
hostbits: add list API
victorjulien Dec 21, 2016
88888c3
unix-socket: add/list/remove hostbit commands
victorjulien Dec 15, 2016
8fde6f9
suricatasc: add/list/remove hostbit commands
victorjulien Dec 15, 2016
71607c9
doc: update unix socket
victorjulien Dec 15, 2016
f0af133
flowvar: remove unused DETECT_VAR_TYPE_ALWAYS
victorjulien Dec 15, 2016
99517cb
lua: support key/value flowvars in lua
victorjulien Nov 6, 2016
4a49260
flowvar: shrink flowvar type by using padded space
victorjulien Dec 15, 2016
c477c43
doc: update for unix socket hostbits
victorjulien Dec 21, 2016
cc40103
detect: add and use util func for alproto sets
victorjulien Dec 24, 2016
f380871
threads: don't sleep under lock
victorjulien Nov 28, 2016
f74eff9
threads: address sleep under lock issue
victorjulien Jan 12, 2017
511e804
detect: fix missing unlock in error path
victorjulien Feb 16, 2017
2f30adb
detect-lua: setup cleanup, fixing a potential int issue
victorjulien Feb 16, 2017
955c227
detect-ssh: cleanup duplicate code
victorjulien Feb 16, 2017
c859d39
coverity: suppress CID 1400648
victorjulien Feb 16, 2017
9da7be8
flow-worker: clean up thread init
victorjulien Feb 16, 2017
d445b4b
dce: remove commented out code
victorjulien Feb 17, 2017
65317ba
output-json: make JSON flags in eve-log user configurable
thus Jan 19, 2017
6a38225
doc: documentation for custom JSON flags in eve-log
thus Jan 25, 2017
8c8db1c
output-json-alert: fix wrongful comments
thus Jan 27, 2017
7293286
output-json: move code to get 5-tuple to own function
thus Jan 27, 2017
234a3a8
output-json-alert: print 'tunnel' JSON object if tunnel
thus Jan 27, 2017
c810748
Makefile: fix race condition in make install-full
jasonish Feb 16, 2017
d8e9e1f
unified2: minor cleanups
jasonish Jan 16, 2017
2c01985
autoconf - look for stdbool.h
jasonish Jan 16, 2017
82f6103
unified2: nostamp and file rotation
jasonish Jan 16, 2017
89ba581
doc: update unified2 section
jasonish Jan 17, 2017
0716199
output-json-tls: custom tls logging
thus Dec 22, 2016
115b313
output-json-tls: log certificate and chain
thus Jan 13, 2017
bbd32c1
output-json-tls: code cleanup
thus Jan 13, 2017
e91bb09
doc: add documentation for TLS eve-log
thus Jan 17, 2017
b1ad770
doc: removed references to older Suricata versions
whartond Feb 20, 2017
1bf7ded
doc: specify buffers that can be used for fast_pattern
whartond Feb 20, 2017
92db12c
pidfile: fail if the pid file exists
jasonish Feb 17, 2017
ee7e689
af-packet: write VLAN info for both TPACKET_V2 and V3
Feb 20, 2017
e41a9d6
af-packet: get VLAN info for packets in TPACKET_V3 mode
Feb 20, 2017
310b27a
af-packet: fix parsing packet in TPACKET_V3 mode
Feb 20, 2017
2c1a36d
app-layer-tls: decode certificate serial number
thus Jan 17, 2017
2b460b8
output-json-lua: log certificate serial number
thus Jan 17, 2017
2e339aa
tls-log: log certificate serial number
thus Jan 17, 2017
9586437
lua: add function to print certificate serial number
thus Jan 17, 2017
d6508e6
detect: add (mpm) keyword tls_cert_serial
thus Feb 20, 2017
ee9f822
doc: add documentation for tls_cert_serial keyword
thus Feb 20, 2017
285b566
doc: add documentation for TlsGetCertSerial Lua function
thus Jan 17, 2017
ddf1bf6
unified2: unlock using same dereference as lock
jasonish Feb 17, 2017
0c3f1e2
logging: move lock into write function
jasonish Feb 20, 2017
6585ac4
logging: remove unused print stats callbacks
jasonish Feb 20, 2017
db5708f
travis: fix libpcre in mac builds
jasonish Mar 17, 2017
2059750
travis: fix pkg-config in mac builds
victorjulien Mar 24, 2017
25bd3e2
qa/appveyor: install libiconv-devel
victorjulien Mar 24, 2017
a86b7b7
app-layer: minor debug improvement
victorjulien Feb 22, 2017
2a5b9eb
stream: remove unused variable
victorjulien Feb 17, 2017
7512949
stream: make data pointer in StreamSegmentCallback const
victorjulien Apr 24, 2016
daf39b4
stream: remove unused stream config member
victorjulien Feb 26, 2017
1de1413
stream: validate SACK right edge to be in window
victorjulien Feb 27, 2017
4c597bb
ippair: use both addresses in hash
victorjulien Feb 27, 2017
132e0e2
ippair: fix xbits unset memleak
victorjulien Feb 27, 2017
7c0a3b5
app-layer: fix memleak on bad traffic
victorjulien Feb 23, 2017
f1e19b5
file store: store multiple files if available
victorjulien Mar 10, 2017
dbbf185
app-layer: fix gap handling in protocol detection
victorjulien Feb 26, 2017
15d26f1
file-store: fix force store
victorjulien Mar 1, 2017
3626ecb
bytejump: don't print errors when matching
victorjulien Mar 6, 2017
c961da2
detect: clean up test
victorjulien Feb 27, 2017
6c6802b
detect: simplify state detect code: remove unused params
victorjulien Feb 27, 2017
c066f04
detect: remove unused alversion logic
victorjulien Feb 27, 2017
a56b481
flow: remove unused alversion fields
victorjulien Feb 27, 2017
e24eb0f
app-layer: remove version logic
victorjulien Feb 28, 2017
4f8eacd
disable-detect: fix needless file hashing
victorjulien Mar 1, 2017
44bab88
detect: fix ssl_state test
victorjulien Mar 9, 2017
b58127e
print: constify input
victorjulien Mar 13, 2017
1a7c5a0
travis: macos: unlink all deps, then relink
jasonish Mar 24, 2017
1589a15
docs: clarify how iprep works
JonZeolla Mar 13, 2017
ce8a65a
docs: fix statement about flow:to_server
JonZeolla Mar 13, 2017
f56428d
tcp/udp: fix checksum validation when 0xffff
jasonish Feb 17, 2017
b79a18e
tcp/udp: rename checksum functions for better meaning
jasonish Feb 21, 2017
6307890
ipv4: update checksum function to be like tcp/udp
jasonish Feb 21, 2017
005a700
logging: support custom file permissions
thus Feb 21, 2017
3b23387
doc: add documentation for eve-log file permissions
thus Feb 22, 2017
365aa1f
lua: add SCFlowTimestamps function
thus Mar 10, 2017
7b1dae6
doc: add documentation for Lua SCFlowTimestamps
thus Mar 10, 2017
3ca1a29
defrag: fix argument used in macro to match signature
jasonish Mar 20, 2017
3726fd6
http: fix body tracking corner case
victorjulien Mar 29, 2017
6227d09
af-packet: fix cppcheck false positive
victorjulien Apr 3, 2017
e99be86
Added HPFeeds Support, adapted from Github: Threatstream/suricata
Philelis Apr 5, 2017
e1bf48c
pool: fix compiler warning
victorjulien Apr 5, 2017
b134dfc
modbus: fix compiler warnings about alignment
victorjulien Apr 5, 2017
d5a0eb4
geoip: fix compiler warning
victorjulien Apr 6, 2017
af174c8
log: common custom format output
fooinha Dec 3, 2016
20d4d40
log: tls custom format log
fooinha Dec 3, 2016
ff30d92
unix-socket: return failure on failure
jasonish Apr 4, 2017
00cd47b
travis: use new container build infrastructure
jasonish Mar 29, 2017
ca92be8
defrag: use new unit test macros
jasonish Mar 6, 2017
7922f9b
defrag: (linux) fix an error in overlapping fragments
jasonish Mar 6, 2017
845e18f
defrag: (windows) detect more overlaps
jasonish Mar 6, 2017
bc480fa
pcre: disable jit on powerpc64
victorjulien Apr 6, 2017
db6c80f
logging: support date modifiers in log filenames
thus Feb 14, 2017
47a5b49
output-json: rotate log file based on time
thus Feb 14, 2017
ffbf8ce
logging: create log directories when needed
thus Feb 14, 2017
37a12fe
doc: add documentation for eve-log file rotation
thus Feb 14, 2017
8b9f84b
doc: add documentation for date modifiers in eve-log
thus Feb 14, 2017
59b9864
logging: don't block on socket writes
jasonish Feb 23, 2017
673549e
eve: log number of events dropped at exit
jasonish Apr 5, 2017
8436a89
logging: only do non-blocking writes if live
jasonish Apr 5, 2017
9ff8882
detect: don't consider an empty rule file an error
jasonish Mar 15, 2017
aca27ff
doc: expand on bpf
victorjulien Apr 13, 2017
cee5c9f
pcre: on ppc64 disable only for specific versions
victorjulien Apr 13, 2017
e69ce30
template script: typo in app-layer setup script
jasonish Apr 10, 2017
1223de4
doc: Napatech docs improvement
psanders240 Mar 16, 2017
618f351
cleanup: get rid of %llu format specifiers
victorjulien Apr 9, 2017
a4dce24
core dumps: check for sys/resource.h
victorjulien Apr 10, 2017
8f15e30
common: improve byte order and wordsize detection
victorjulien Apr 10, 2017
234de38
Merge pull request #1 from inliniac/master
Philelis Apr 14, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@
*.lo
*.in
*.[ch]e
*.log
*.rule
*.rules
*.yaml
Makefile
.deps/
.libs/
Expand Down Expand Up @@ -31,6 +35,10 @@ libhtp/stamp-h1
libhtp/test/TAGS
libtool
ltmain.sh
src/*.diff
src/*.patch
src/*.rej
src/*.orig
src/TAGS
src/suricata
stamp-h1
Expand Down
175 changes: 166 additions & 9 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,169 @@
sudo: false
language: c
compiler:
- gcc
- clang
# Change this to your needs
script: sh autogen.sh && ./configure --enable-nfqueue --enable-unittests && make && make check

addons:
apt:
# Define the required packages without libjansson so we can do a
# build without libjansson.
packages-without-jansson: &packages-without-jansson
- libpcre3
- libpcre3-dbg
- libpcre3-dev
- build-essential
- autoconf
- automake
- libtool
- libpcap-dev
- libnet1-dev
- libyaml-0-2
- libyaml-dev
- zlib1g
- zlib1g-dev
- libcap-ng-dev
- libcap-ng0
- make
- libmagic-dev
- libnetfilter-queue-dev
- libnetfilter-queue1
- libnfnetlink-dev
- libnfnetlink0
- libhiredis-dev
- libjansson-dev
# Now define the default set of packages which is those above, and
# libjansson.
packages: &packages
- *packages-without-jansson
- libjansson-dev

# Define the default CFLAGS used by all builds as a YAML anchor.
default-cflags: &default-cflags
CFLAGS="-Wall -Wextra -Werror -Wno-unused-parameter -Wno-unused-function"

matrix:
include:
# Linux, gcc, coccinelle.
- os: linux
compiler: gcc
env:
- NAME="linux,gcc,cocci"
- *default-cflags
addons:
apt:
sources:
- sourceline: ppa:npalix/coccinelle
packages:
- *packages
- coccinelle
# Linux, gcc, -DNDEBUG.
- os: linux
compiler: gcc
env:
- NAME="linux,gcc,ndebug"
- *default-cflags
- EXTRA_CFLAGS="-DNDEBUG"
# Linux, clang. For this build we'll also enable -Wshadow.
- os: linux
compiler: clang
env:
- NAME="linux,clang"
- *default-cflags
- EXTRA_CFLAGS="-Wshadow"
# Linux, gcc, profiling.
- os: linux
compiler: gcc
env:
- NAME="linux,gcc,profiling"
- *default-cflags
- ARGS="--enable-profiling"
# Linux, gcc, debug.
- os: linux
compiler: gcc
env:
- NAME="linux,gcc,debug"
- *default-cflags
- ARGS="--enable-debug"
- ENABLE_DEBUG="yes"
# Linux, gcc, no jansson.
- os: linux
compiler: gcc
env:
- NAME="linux,gcc,no-json"
- *default-cflags
addons:
apt:
packages:
- *packages-without-jansson
# OSX 10.12, XCode 8.1
- os: osx
compiler: gcc
osx_image: xcode8.1
sudo: true
env:
- NAME="osx,gcc"
- *default-cflags

script:
- sh ./autogen.sh
- |
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
export CFLAGS="${CFLAGS} ${EXTRA_CFLAGS}"
./configure --enable-nfqueue --enable-unittests --enable-hiredis ${ARGS}
fi
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
export CFLAGS="${CFLAGS} ${EXTRA_CFLAGS}"
./configure --enable-unittests --enable-hiredis --enable-ipfw \
--enable-lua --with-libpcre-includes=/usr/local/include \
--with-libpcre-includes=/usr/local/include \
--with-libpcre-libraries=/usr/local/lib \
--with-libnss-includes=/usr/local/opt/nss/include/nss \
--with-libnss-libraries=/usr/local/opt/nss/lib \
--with-libnspr-includes=/usr/local/opt/nspr/include/nspr \
--with-libnspr-libraries=/usr/local/opt/nspr/lib
fi
# With debug enabled too much output is generated for Travis, so
# redirect stderr to a file.
- |
# Linux container builds have 2 cores, make use of them.
if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then
j="-j 2"
fi
if [[ "$ENABLE_DEBUG" == "yes" ]]; then
make ${j} check 2> stderr.log
else
make ${j} check
fi

before_install:
- sudo add-apt-repository -y ppa:npalix/coccinelle
- sudo apt-get update -qq
- sudo apt-get install -y libpcre3 libpcre3-dbg libpcre3-dev build-essential autoconf automake libtool libpcap-dev libnet1-dev libyaml-0-2 libyaml-dev zlib1g zlib1g-dev libcap-ng-dev libcap-ng0 make libmagic-dev libnetfilter-queue-dev libnetfilter-queue1 libnfnetlink-dev libnfnetlink0 coccinelle
- ./qa/travis-libhtp.sh
- |
if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then
brew update

# Unlink and install each dependency to avoid errors where a
# formula might already be installed but is not the current
# version.
packages=""
packages="$packages pkg-config"
packages="$packages libmagic"
packages="$packages libyaml"
packages="$packages nss"
packages="$packages nspr"
packages="$packages jansson"
packages="$packages libnet"
packages="$packages lua"
packages="$packages pcre"
packages="$packages hiredis"
for package in $packages; do
if brew ls $package --versions > /dev/null; then
brew unlink $package
fi
done

# Now install.
brew install $packages

# Now relink, becuase if a newer version of a package wasn't
# installed above, it will remain unlinked.
brew link $packages
fi
- ./qa/travis-libhtp.sh
39 changes: 19 additions & 20 deletions COPYING
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991

Copyright (C) 1989, 1991 Free Software Foundation, Inc.
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.

Preamble
Preamble

The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
Expand All @@ -15,7 +15,7 @@ software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.) You can apply it to
the GNU Lesser General Public License instead.) You can apply it to
your programs, too.

When we speak of free software, we are referring to freedom, not
Expand Down Expand Up @@ -55,8 +55,8 @@ patent must be licensed for everyone's free use or not licensed at all.

The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE

GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

0. This License applies to any program or other work which contains
Expand Down Expand Up @@ -110,7 +110,7 @@ above, provided that you also meet all of these conditions:
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)

These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
Expand Down Expand Up @@ -168,7 +168,7 @@ access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.

4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
Expand Down Expand Up @@ -225,7 +225,7 @@ impose that choice.

This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.

8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
Expand Down Expand Up @@ -255,7 +255,7 @@ make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally.

NO WARRANTY
NO WARRANTY

11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
Expand All @@ -277,9 +277,9 @@ YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES.

END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
END OF TERMS AND CONDITIONS

How to Apply These Terms to Your New Programs

If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
Expand All @@ -303,10 +303,9 @@ the "copyright" line and a pointer to where the full notice is found.
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

Also add information on how to contact you by electronic and paper mail.

Expand Down Expand Up @@ -336,5 +335,5 @@ necessary. Here is a sample; alter the names:
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Library General
library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License.
Loading