Fixed minor behavior on the trasnformations and added sha1-mbedtls

This commit is contained in:
Felipe Zimmerle
2016-05-30 16:53:08 -03:00
parent f35d28b8d3
commit 967c8c90f2
17 changed files with 1077 additions and 775 deletions

View File

@@ -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: