mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-09-29 11:16:33 +03:00
Adds new transaction constructor that accepts the transaction id as parameter.
This commit is contained in:
@@ -267,6 +267,8 @@ class TransactionAnchoredVariables {
|
||||
class Transaction : public TransactionAnchoredVariables {
|
||||
public:
|
||||
Transaction(ModSecurity *transaction, Rules *rules, void *logCbData);
|
||||
Transaction(ModSecurity *transaction, Rules *rules, char *id,
|
||||
void *logCbData);
|
||||
~Transaction();
|
||||
|
||||
/** TODO: Should be an structure that fits an IP address */
|
||||
@@ -577,6 +579,10 @@ extern "C" {
|
||||
Transaction *msc_new_transaction(ModSecurity *ms,
|
||||
Rules *rules, void *logCbData);
|
||||
|
||||
/** @ingroup ModSecurity_C_API */
|
||||
Transaction *msc_new_transaction_with_id(ModSecurity *ms,
|
||||
Rules *rules, char *id, void *logCbData);
|
||||
|
||||
/** @ingroup ModSecurity_C_API */
|
||||
int msc_process_connection(Transaction *transaction,
|
||||
const char *client, int cPort, const char *server, int sPort);
|
||||
|
Reference in New Issue
Block a user