mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-19 02:40:35 +03:00
Fixed minor behavior on the trasnformations and added sha1-mbedtls
This commit is contained in:
@@ -40,11 +40,7 @@ Sha1::Sha1(std::string action)
|
||||
std::string Sha1::evaluate(std::string value,
|
||||
Transaction *transaction) {
|
||||
|
||||
Utils::SHA1 sha1;
|
||||
sha1.update(&value);
|
||||
std::string sha1_bin = sha1.final_bin();
|
||||
|
||||
return sha1_bin;
|
||||
return Utils::Sha1::digest(value);
|
||||
}
|
||||
|
||||
} // namespace transformations
|
||||
|
||||
Reference in New Issue
Block a user