|
Packit Service |
384592 |
/*
|
|
Packit Service |
384592 |
* ModSecurity for Apache 2.x, http://www.modsecurity.org/
|
|
Packit Service |
384592 |
* Copyright (c) 2004-2013 Trustwave Holdings, Inc. (http://www.trustwave.com/)
|
|
Packit Service |
384592 |
*
|
|
Packit Service |
384592 |
* You may not use this file except in compliance with
|
|
Packit Service |
384592 |
* the License. You may obtain a copy of the License at
|
|
Packit Service |
384592 |
*
|
|
Packit Service |
384592 |
* http://www.apache.org/licenses/LICENSE-2.0
|
|
Packit Service |
384592 |
*
|
|
Packit Service |
384592 |
* If any of the files related to licensing are missing or if you have any
|
|
Packit Service |
384592 |
* other questions related to licensing please contact Trustwave Holdings, Inc.
|
|
Packit Service |
384592 |
* directly using the email address security@modsecurity.org.
|
|
Packit Service |
384592 |
*/
|
|
Packit Service |
384592 |
|
|
Packit Service |
384592 |
#if defined(WITH_LUA)
|
|
Packit Service |
384592 |
|
|
Packit Service |
384592 |
#ifndef _MSC_LUA_H_
|
|
Packit Service |
384592 |
#define _MSC_LUA_H_
|
|
Packit Service |
384592 |
|
|
Packit Service |
384592 |
typedef struct msc_script msc_script;
|
|
Packit Service |
384592 |
typedef struct msc_script_part msc_script_part;
|
|
Packit Service |
384592 |
|
|
Packit Service |
384592 |
#include <lua.h>
|
|
Packit Service |
384592 |
#include <lauxlib.h>
|
|
Packit Service |
384592 |
#include <lualib.h>
|
|
Packit Service |
384592 |
|
|
Packit Service |
384592 |
#include "apr_general.h"
|
|
Packit Service |
384592 |
#include "apr_tables.h"
|
|
Packit Service |
384592 |
#include "modsecurity.h"
|
|
Packit Service |
384592 |
|
|
Packit Service |
384592 |
struct msc_script {
|
|
Packit Service |
384592 |
const char *name;
|
|
Packit Service |
384592 |
apr_array_header_t *parts;
|
|
Packit Service |
384592 |
};
|
|
Packit Service |
384592 |
|
|
Packit Service |
384592 |
struct msc_script_part {
|
|
Packit Service |
384592 |
const void *data;
|
|
Packit Service |
384592 |
size_t len;
|
|
Packit Service |
384592 |
};
|
|
Packit Service |
384592 |
|
|
Packit Service |
384592 |
char DSOLOCAL *lua_compile(msc_script **script, const char *filename, apr_pool_t *pool);
|
|
Packit Service |
384592 |
|
|
Packit Service |
384592 |
int DSOLOCAL lua_execute(msc_script *script, char *param, modsec_rec *msr, msre_rule *rule, char **error_msg);
|
|
Packit Service |
384592 |
|
|
Packit Service |
384592 |
apr_status_t DSOLOCAL msre_action_setvar_execute(modsec_rec *r, apr_pool_t *, msre_rule *, char *, char *);
|
|
Packit Service |
384592 |
|
|
Packit Service |
384592 |
#endif
|
|
Packit Service |
384592 |
|
|
Packit Service |
384592 |
#endif /* WITH_LUA */
|