From c9202a44b204519ac3d70aecec75cfdeac76843d Mon Sep 17 00:00:00 2001 From: brenosilva Date: Wed, 22 Aug 2012 14:05:07 +0000 Subject: [PATCH] Update license --- iis/main.cpp | 14 +++++ iis/moduleconfig.cpp | 14 +++++ iis/moduleconfig.h | 14 +++++ iis/mymodule.cpp | 14 +++++ iis/mymodule.h | 60 ++++++++++++------- iis/mymodulefactory.h | 14 +++++ .../modsecurity/ngx_http_modsecurity_module.c | 14 +++++ 7 files changed, 121 insertions(+), 23 deletions(-) diff --git a/iis/main.cpp b/iis/main.cpp index 3fdc986b..f7ed1fe6 100644 --- a/iis/main.cpp +++ b/iis/main.cpp @@ -1,3 +1,17 @@ +/* +* ModSecurity for Apache 2.x, http://www.modsecurity.org/ +* Copyright (c) 2004-2011 Trustwave Holdings, Inc. (http://www.trustwave.com/) +* +* You may not use this file except in compliance with +* the License.  You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* If any of the files related to licensing are missing or if you have any +* other questions related to licensing please contact Trustwave Holdings, Inc. +* directly using the email address security@modsecurity.org. +*/ + #define WIN32_LEAN_AND_MEAN #undef inline diff --git a/iis/moduleconfig.cpp b/iis/moduleconfig.cpp index e5d81971..53e6ba12 100644 --- a/iis/moduleconfig.cpp +++ b/iis/moduleconfig.cpp @@ -1,3 +1,17 @@ +/* +* ModSecurity for Apache 2.x, http://www.modsecurity.org/ +* Copyright (c) 2004-2011 Trustwave Holdings, Inc. (http://www.trustwave.com/) +* +* You may not use this file except in compliance with +* the License.  You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* If any of the files related to licensing are missing or if you have any +* other questions related to licensing please contact Trustwave Holdings, Inc. +* directly using the email address security@modsecurity.org. +*/ + #define WIN32_LEAN_AND_MEAN #undef inline diff --git a/iis/moduleconfig.h b/iis/moduleconfig.h index 09528299..70bae0ef 100644 --- a/iis/moduleconfig.h +++ b/iis/moduleconfig.h @@ -1,3 +1,17 @@ +/* +* ModSecurity for Apache 2.x, http://www.modsecurity.org/ +* Copyright (c) 2004-2011 Trustwave Holdings, Inc. (http://www.trustwave.com/) +* +* You may not use this file except in compliance with +* the License.  You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* If any of the files related to licensing are missing or if you have any +* other questions related to licensing please contact Trustwave Holdings, Inc. +* directly using the email address security@modsecurity.org. +*/ + #pragma once #define MODSECURITY_SECTION L"system.webServer/ModSecurity" diff --git a/iis/mymodule.cpp b/iis/mymodule.cpp index 4421e5b3..e19e6772 100644 --- a/iis/mymodule.cpp +++ b/iis/mymodule.cpp @@ -1,3 +1,17 @@ +/* +* ModSecurity for Apache 2.x, http://www.modsecurity.org/ +* Copyright (c) 2004-2011 Trustwave Holdings, Inc. (http://www.trustwave.com/) +* +* You may not use this file except in compliance with +* the License.  You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* If any of the files related to licensing are missing or if you have any +* other questions related to licensing please contact Trustwave Holdings, Inc. +* directly using the email address security@modsecurity.org. +*/ + #define WIN32_LEAN_AND_MEAN #undef inline diff --git a/iis/mymodule.h b/iis/mymodule.h index 04fbf982..3ddf617f 100644 --- a/iis/mymodule.h +++ b/iis/mymodule.h @@ -1,3 +1,17 @@ +/* +* ModSecurity for Apache 2.x, http://www.modsecurity.org/ +* Copyright (c) 2004-2011 Trustwave Holdings, Inc. (http://www.trustwave.com/) +* +* You may not use this file except in compliance with +* the License.  You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* If any of the files related to licensing are missing or if you have any +* other questions related to licensing please contact Trustwave Holdings, Inc. +* directly using the email address security@modsecurity.org. +*/ + #ifndef __MY_MODULE_H__ #define __MY_MODULE_H__ @@ -8,35 +22,35 @@ class CMyHttpModule : public CHttpModule { public: - HANDLE m_hEventLog; - DWORD m_dwPageSize; + HANDLE m_hEventLog; + DWORD m_dwPageSize; - REQUEST_NOTIFICATION_STATUS - OnBeginRequest( - IN IHttpContext * pHttpContext, - IN IHttpEventProvider * pProvider - ); + REQUEST_NOTIFICATION_STATUS + OnBeginRequest( + IN IHttpContext * pHttpContext, + IN IHttpEventProvider * pProvider + ); - REQUEST_NOTIFICATION_STATUS - OnSendResponse( - IN IHttpContext * pHttpContext, - IN ISendResponseProvider * pProvider - ); + REQUEST_NOTIFICATION_STATUS + OnSendResponse( + IN IHttpContext * pHttpContext, + IN ISendResponseProvider * pProvider + ); - REQUEST_NOTIFICATION_STATUS - OnPostEndRequest( - IN IHttpContext * pHttpContext, - IN IHttpEventProvider * pProvider - ); + REQUEST_NOTIFICATION_STATUS + OnPostEndRequest( + IN IHttpContext * pHttpContext, + IN IHttpEventProvider * pProvider + ); - HRESULT ReadFileChunk(HTTP_DATA_CHUNK *chunk, char *buf); - - CMyHttpModule(); - ~CMyHttpModule(); + HRESULT ReadFileChunk(HTTP_DATA_CHUNK *chunk, char *buf); - void Dispose(); + CMyHttpModule(); + ~CMyHttpModule(); - BOOL WriteEventViewerLog(LPCSTR szNotification, WORD category = EVENTLOG_INFORMATION_TYPE); + void Dispose(); + + BOOL WriteEventViewerLog(LPCSTR szNotification, WORD category = EVENTLOG_INFORMATION_TYPE); }; #endif diff --git a/iis/mymodulefactory.h b/iis/mymodulefactory.h index ee868467..a073a78e 100644 --- a/iis/mymodulefactory.h +++ b/iis/mymodulefactory.h @@ -1,3 +1,17 @@ +/* +* ModSecurity for Apache 2.x, http://www.modsecurity.org/ +* Copyright (c) 2004-2011 Trustwave Holdings, Inc. (http://www.trustwave.com/) +* +* You may not use this file except in compliance with +* the License.  You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* If any of the files related to licensing are missing or if you have any +* other questions related to licensing please contact Trustwave Holdings, Inc. +* directly using the email address security@modsecurity.org. +*/ + #ifndef __MODULE_FACTORY_H__ #define __MODULE_FACTORY_H__ diff --git a/nginx/modsecurity/ngx_http_modsecurity_module.c b/nginx/modsecurity/ngx_http_modsecurity_module.c index 3206580d..8d0752bd 100644 --- a/nginx/modsecurity/ngx_http_modsecurity_module.c +++ b/nginx/modsecurity/ngx_http_modsecurity_module.c @@ -1,3 +1,17 @@ +/* +* ModSecurity for Apache 2.x, http://www.modsecurity.org/ +* Copyright (c) 2004-2011 Trustwave Holdings, Inc. (http://www.trustwave.com/) +* +* You may not use this file except in compliance with +* the License.  You may obtain a copy of the License at +* +*     http://www.apache.org/licenses/LICENSE-2.0 +* +* If any of the files related to licensing are missing or if you have any +* other questions related to licensing please contact Trustwave Holdings, Inc. +* directly using the email address security@modsecurity.org. +*/ + #include #include #include