Adds support to LUA in configure scripts

This commit is contained in:
Felipe Zimmerle
2017-10-30 10:42:40 -03:00
parent 9369efcb90
commit 1189e9b0ef
13 changed files with 224 additions and 0 deletions

View File

@@ -78,6 +78,10 @@ noinst_HEADERS = \
*.h
ENGINES = \
engines/lua.cc
VARIABLES = \
variables/duration.cc \
variables/env.cc \
@@ -273,6 +277,7 @@ libmodsecurity_la_SOURCES = \
rules_exceptions.cc \
${BODY_PROCESSORS} \
${ACTIONS} \
${ENGINES} \
${COLLECTION} \
${OPERATORS} \
${UTILS} \
@@ -298,6 +303,7 @@ libmodsecurity_la_CPPFLAGS = \
$(LMDB_CFLAGS) \
$(PCRE_CFLAGS) \
$(SSDEEP_CFLAGS) \
$(LUA_CFLAGS) \
$(LIBXML2_CFLAGS)
libmodsecurity_la_LIBADD = \
@@ -308,6 +314,7 @@ libmodsecurity_la_LIBADD = \
$(YAJL_LDFLAGS) $(YAJL_LDADD) \
$(LMDB_LDFLAGS) $(LMDB_LDADD) \
$(SSDEEP_LDFLAGS) $(SSDEEP_LDADD) \
$(LUA_LDFLAGS) $(LUA_LDADD) \
$(LIBXML2_LDADD) \
../others/libinjection.la \
../others/libmbedtls.la

32
src/engines/lua.cc Normal file
View File

@@ -0,0 +1,32 @@
/*
* ModSecurity, http://www.modsecurity.org/
* Copyright (c) 2015 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 "modsecurity/modsecurity.h"
#include "src/engines/lua.h"
#ifdef WITH_LUA
#include <lua.hpp>
#endif
#ifndef SRC_ENGINES_LUA_H_
#define SRC_ENGINES_LUA_H_
#endif // SRC_ENGINES_LUA_H_

0
src/engines/lua.h Normal file
View File