Blame apache2/msc_lua.h

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