Eduardo Arias
8d6b185856
Removed unnecessary lock to call acmp_process_quick in Pm::evaluate
...
- This was introduced in commit 119a6fc & 7d786b3 because of a potential
issue reported in #1573 .
- The ACMP tree structure is initialized when the operator is
initialized.
- During transaction execution the ACMP tree structure is only 'read'
while traversing the tree (in acmp_process_quick) so this is safe for
use in a multi-threaded environment.
2024-08-13 10:53:15 -07:00
Eduardo Arias
4bf9616f9e
Adding multithreaded example from issue #3054 (by airween)
...
- Rewritten to use C++ libModSecurity API and std::thread (instead of
pthreads)
2024-08-09 11:34:41 -07:00
Eduardo Arias
59254fe3bd
Simplifiy configuration to build libModSecurity with std C++17
...
- Leveraged autoconf again to check whether the C++ compiler supports
the required standard version and build using it.
- Replaced the outdaded `ax_cxx_compile_stdcxx_11.m4` macro with the
latest version of `ax_cxx_compile_stdcxx` which supports C++17.
- https://www.gnu.org/software/autoconf-archive/ax_cxx_compile_stdcxx.html
- https://raw.githubusercontent.com/autoconf-archive/autoconf-archive/e4e5269db2764b9f53d759c24750ac6ca38e02ea/m4/ax_cxx_compile_stdcxx.m4
- This should also streamline updating to C++20 in the future.
2024-08-08 11:23:35 -07:00
Eduardo Arias
e31ff7e60b
Build on macOS 14 arm64
2024-08-05 11:49:58 -07:00
gberkes
d47185d771
Build System: Introduce Configurable Assertion Handling
...
Implemented a new configuration option --enable-assertions=[yes|no] within config.ac, enabling controlled inclusion of -DNDEBUG in CPPFLAGS. The default setting suppresses assertions (by adding -DNDEBUG to CPPFLAGS), preserving the original behavior. This enhancement allows for the optional enabling of assertions during development or debugging by setting --enable-assertions=yes, thereby excluding -DNDEBUG from CPPFLAGS.
2024-08-04 22:47:15 +02:00
Eduardo Arias
a3f40ef03c
Replace Mbed TLS source code in repository with a submodule
...
- Updated to latest Mbed TLS version (v3.6.0)
2024-05-31 00:41:10 +00:00
Eduardo Arias
7732b5e8f3
Update libinjection to version v3.9.2-92-gb9fcaaf
2024-05-31 00:41:10 +00:00
Ervin Hegedus
f474cc59b8
Merge pull request #3079 from MirkoDziadzka/mirko-bump-c++-version
...
No other remark was added, merging. Thanks @MirkoDziadzka.
2024-02-27 19:34:48 +01:00
Ervin Hegedus
d0f3cf1389
Replace obsolete macros
2024-02-25 22:01:07 +01:00
Mirko Dziadzka
367a871f30
Bump the C++ version from C++11 to C++17
...
This will allow the usage of more modern features in the future.
2024-02-09 21:57:31 +01:00
Martin Vierula
8d62ac4b04
Configure: use AS_ECHO_N instead echo -n
2023-04-20 07:28:21 -07:00
Hugh McMaster
f05f322302
Use AS_HELP_STRING instead of the obsolete AC_HELP_STRING macro
...
AC_HELP_STRING has been obsolete since at least Autoconf 2.53,
which was released in 2003.
2022-10-16 18:16:01 +11:00
Martin Vierula
f84614fe06
Support PCRE2
2022-04-13 10:44:56 -07:00
Felipe Zimmerle
a589f6b693
Build: using PKG-CONFIG in a new fashion
...
Trying to avoid bulid errors if pkg-config is available.
2021-05-24 10:33:11 -03:00
Felipe Zimmerle
4cdcc15334
Revert "Adds suppor for HyperScan in the bulid system"
...
This reverts commit 912704b6d4e45aa601b87c5a4cf4b6061d1bbccb.
2021-02-26 11:33:12 -03:00
Felipe Zimmerle
912704b6d4
Adds suppor for HyperScan in the bulid system
2021-02-26 11:15:02 -03:00
Dmitri Toubelis
102f4bdd91
Make the configure
step more reliable
...
Iyt appears that in cross compile environments the location of the
"current" directory cannot be assumed. This fix makes it explicit.
2021-01-25 09:26:51 -03:00
David Carlier
560f81200f
Adding DragonFlyBSD support.
2020-12-10 09:51:03 -03:00
Frank Vanbever
e9bcaf441d
test for uClinux in configure script
...
Signed-off-by: Frank Vanbever <frank.vanbever@essensium.com>
2020-02-04 11:04:31 -03:00
Frank Vanbever
fe84d2bae6
Fail when CANONICAL_HOST cannot be determined
...
When the CANONICAL_HOST is unknown the configure script exits
with exit code 0 even though no makefile was produced.
Signed-off-by: Frank Vanbever <frank.vanbever@essensium.com>
2020-02-04 11:04:31 -03:00
chuckwolber
8af8cad907
Use of AC_CHECK_FILE prevents cross compilation.
...
The use of AC_CHECK_FILE causes the following error when cross compiling:
configure: error: cannot check for file existence when cross compiling
The solution is to check for the file directly instead of using a macro.
Resolves : #1983
2018-12-17 10:19:55 -03:00
Felipe Zimmerle
6cbcdd024f
Fix libInjection version on configure summary
2018-11-01 22:15:23 -03:00
Victor Hora
dce2fed310
Add exception to linker as OpenBSD doesn't like static
2018-09-11 20:45:58 -03:00
Felipe Zimmerle
ae38c23bbe
Adjustments on top of #1790
2018-06-12 21:51:23 -03:00
Guillaume Quintard
544fb50c1a
Add basic pkg-config info
2018-06-12 19:52:37 -03:00
Felipe Zimmerle
2e87c4e751
Fix version number on libtool
2018-04-03 01:51:46 -03:00
Felipe Zimmerle
df169ea108
Adds support for libMaxMind
2018-03-22 19:11:42 -03:00
Ervin Hegedüs
9dff36f598
Added some cosmetics to autoconf related code
2018-02-23 18:37:21 -03:00
Felipe Zimmerle
1189e9b0ef
Adds support to LUA in configure scripts
2017-10-31 09:59:12 -03:00
Felipe Zimmerle
7622866f97
Adds support for @fuzzyHash
...
Issue #997
2017-10-26 17:44:17 -03:00
Felipe Zimmerle
7d786b3350
Makes pm mutex optional via configuration flag
2017-09-26 16:33:31 +00:00
Felipe Zimmerle
224f6ef260
Fix configuration schema on the configure summary
2017-08-27 22:06:20 -03:00
Felipe Zimmerle
20134ef242
Fix examples/using_bodies_in_chunks compilation
2017-06-10 20:40:12 -03:00
Felipe Zimmerle
e2af60e765
Expands log_cb to share ruleMessage structure instead text
...
Text version still available and it is the default options
2017-03-06 15:02:04 -03:00
Felipe Zimmerle
9ea5b475b2
Fix missing initialization on rules-check utility
2017-03-06 15:02:04 -03:00
Felipe Zimmerle
6d61bd6b57
Adds rules-check utility
2017-03-06 15:02:04 -03:00
Felipe Zimmerle
027d50b76b
Adds first version of `processContentOffset'
...
This commit also includes an example application on how to use the
`processContentOffset' method.
2017-03-06 15:02:02 -03:00
Felipe Zimmerle
1e8b374117
Removes the depency on bison/flex if it is not a parser build
2017-03-06 15:01:52 -03:00
Felipe Zimmerle
3eccfaf1f6
Disables parser generation on all builds
...
The parser generation is now an configure option
2017-03-06 15:01:52 -03:00
Felipe Zimmerle
3ab5c8057d
Updates the fuzzer sub-project
2016-11-11 13:05:40 -03:00
Felipe Zimmerle
ee996a8373
Adds configure option to [disa|ena]ble the library examples
2016-11-11 09:39:26 -03:00
Andrei Belov
ee9f3ebc59
configure: conditional creation of Makefiles in test subdir.
2016-07-11 11:08:41 -03:00
Felipe Zimmerle
20689145dd
Renames examples/multithread_c to multiprocess_c
2016-07-07 10:31:35 -03:00
Felipe Zimmerle
5daf4873b5
build: Searching for LMDB during the configuration phase
2016-07-05 11:56:19 -03:00
Felipe Zimmerle
8cdb138076
Adds support to make check-valgrind
...
make check-valgrind is useful to identify any memory related issue.
2016-06-14 14:05:28 -03:00
Felipe Zimmerle
f0155e3f32
Adds support to make check
...
The regression and unit tests are now integrated with `make check`.
It is possible to use make check -jN to have multiple tests running
in parallel.
2016-06-14 09:47:41 -03:00
Felipe Zimmerle
ff165a4035
Adds support to the multithread example
2016-04-26 17:55:05 -03:00
Felipe Zimmerle
c2d9a153cb
Adds support to afl fuzzer in the build system
2015-12-23 00:27:30 -03:00
Felipe Zimmerle
0694cd30ca
Adds support to libxml2 detection on the build system
2015-12-10 11:17:07 -03:00
Felipe Zimmerle
80b82d3707
Adds the Global LDADD option and fed according to the platform
2015-12-01 17:34:18 -03:00