platform/libinjection/php/libinjection.i

18 lines
465 B
OpenEdge ABL
Raw Normal View History

2019-08-16 14:42:40 +00:00
/* libinjection.i SWIG interface file for PHP */
%module libinjection
%{
#include "libinjection.h"
#include "libinjection_sqli.h"
struct libinjection_sqli_token * libinjection_sqli_state_tokenvec_geti(sfilter* sf, int i) {
return &(sf->tokenvec[i]);
}
%}
%include "typemaps.i"
// automatically append string length into arg array
%apply (char *STRING, size_t LENGTH) { (const char *s, size_t slen) };
%include "libinjection.h"
%include "libinjection_sqli.h"