mirror of
https://github.com/owasp-modsecurity/ModSecurity.git
synced 2025-11-17 09:55:28 +03:00
Fixed minor behavior on the trasnformations and added sha1-mbedtls
This commit is contained in:
@@ -58,15 +58,14 @@ namespace modsecurity {
|
||||
void UniqueId::fillUniqueId() {
|
||||
std::string macAddress;
|
||||
std::string name;
|
||||
Utils::SHA1 sha1;
|
||||
std::string data;
|
||||
|
||||
macAddress = ethernetMacAddress();
|
||||
name = machineName();
|
||||
|
||||
sha1.update(&macAddress);
|
||||
sha1.update(&name);
|
||||
data = macAddress + name;
|
||||
|
||||
this->uniqueId_str = sha1.final();
|
||||
this->uniqueId_str = Utils::Sha1::hexdigest(data);
|
||||
}
|
||||
|
||||
// Based on:
|
||||
|
||||
Reference in New Issue
Block a user