22 Commits

Author SHA1 Message Date
Felipe Zimmerle
b304ab1aa2 Improves SecRemoteRules messages on IIS
IIS was not displaying correctly the error messages and the amount of
loaded rules while the operator SecRemoteRules was used.
2015-02-12 09:37:32 -08:00
Felipe Zimmerle
385a2828e8 Code cosmetics: Reduces the amounts of warning.
Removes the warnings by adding missing headers and removed unused variables.
2014-03-31 16:22:11 -07:00
Felipe "Zimmerle" Costa
20014c808c Adds modsecStatusEngineCall to standalone API
In ModSecurityIIS the configuration is loaded upon the first request
is received. In other words, SecStatusEngine value can be only
loaded once the first request hit the server, and so, the status
function was moved to proceed just after the configuration got loaded.
This update is IIS only.
2014-03-31 07:14:55 -07:00
David Andrews
dda91f1689 Standalone: independently destroy the connection and request pools
Add independent modsecFinishConnection API that allows you to independently
destroy the connection and request pools. This is to facilitate reuse of a
connection for multiple requests.
2014-03-03 14:17:00 -08:00
David Andrews
27dd513ab6 Flip allocations that happen during initialization (typically) over to use non-global apr memory pools. 2014-03-03 08:00:53 -08:00
Felipe Zimmerle
fe14d9df4d nginx: Considering modsec state before apply any rules
For some reason the state of modsec (enable, disable or detecting only) was not
being checked under certain circumstances. For instance, while reading the
body. This was leading ModSecurity to fail and consequently nginx. This patch
added the to standalone implementation mechanism to verify the state that is now
verified under the nginx module.
2014-01-13 18:44:47 -08:00
Felipe Zimmerle
7ac515ee29 nginx: Adds proper support to SecServerSignature
SecServerSignature was leading nginx to crash. It was trying to write over a
memory area that it was not allowed to. In order to fix that a new function was
created on the standalone api. This function is called
modsecIsServerSignatureAvailale. Whenever it returns data it means that the
function SecServerSignature was used by the user. Nginx module was also patched
to support this new function.
2014-01-08 18:06:32 -08:00
Breno Silva
aa18ec7f45 Updated copyright dates 2013-04-19 03:20:46 -04:00
chaizhenhua
088c660d58 Improved build script 2013-03-31 15:24:45 +08:00
Breno Silva
4a8e536b0b Nginx: fixed SecRequestBodyAccess 2013-01-30 16:51:42 -04:00
chaizhenhua
1a89b6b8a6 Fixed deny not work in response phase, Fixed debug log message 2013-01-31 09:09:28 +08:00
chaizhenhua
65d889664c Fixed Action Deny not Work 2013-01-27 18:42:39 +08:00
chaizhenhua
972d9e2abf Added Response Phase for Nginx 2013-01-26 22:44:54 +08:00
chaizhenhua
48bd09939f dos2unix standalone/api.c 2013-01-26 22:17:52 +08:00
Greg Wroblewski
c53e743c86 IIS version improvements 2013-01-18 11:39:05 -08:00
Chai Zhenhua
fc7b3ef223 Fixed valgrind complain 2013-01-06 13:47:52 +08:00
chaizhenhua
6815d17690 Added drop action for nginx 2012-12-20 12:32:58 +08:00
Greg Wroblewski
74b8daaadd Fixed crash with invalid commands and marked IIS server as non-virtual, so many commands would work (like SecDataDir). 2012-11-08 23:49:04 -08:00
gregwroblewski
6900616faf Standalone: added Include command
IIS: added locking, response processing check, fixed file chunk reading bugs
2012-10-12 06:27:22 +00:00
gregwroblewski
092559a585 Added missing functions to make non-Apache versions compile with Apache 2.4. 2012-08-29 23:53:23 +00:00
brenosilva
054e015ded Fix compilation issues in api.c 2012-08-22 14:25:09 +00:00
gregwroblewski
2dbe4ab4f0 Second part of IIS/nginx merge into M2 trunk. 2012-08-20 20:31:06 +00:00