mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-16 17:41:52 +03:00
Refactoring: Makes transformations to work with new execute signature
This commit is contained in:
@@ -31,11 +31,12 @@ namespace actions {
|
||||
namespace transformations {
|
||||
|
||||
|
||||
std::string Md5::execute(const std::string &value,
|
||||
Transaction *transaction) {
|
||||
std::string ret = Utils::Md5::digest(value);
|
||||
void Md5::execute(Transaction *t,
|
||||
ModSecStackString &in,
|
||||
ModSecStackString &out) {
|
||||
std::string ret = Utils::Md5::digest(std::string(in.c_str(), in.size()));
|
||||
|
||||
return ret;
|
||||
out.assign(ret.c_str(), ret.size());
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user