Base: Clean up explicit uses of namespaces in places where they're not necessary.

This commit covers all of the common and base classes.
This commit is contained in:
Tim Wojtulewicz 2020-08-21 09:29:37 -07:00
parent 9f802b2a4d
commit fe0c22c789
240 changed files with 6823 additions and 6787 deletions

View file

@ -40,11 +40,11 @@ EVP_MD_CTX* hash_init(HashAlgorithm alg)
md = EVP_sha512();
break;
default:
zeek::reporter->InternalError("Unknown hash algorithm passed to hash_init");
reporter->InternalError("Unknown hash algorithm passed to hash_init");
}
if ( ! EVP_DigestInit_ex(c, md, NULL) )
zeek::reporter->InternalError("EVP_DigestInit failed");
reporter->InternalError("EVP_DigestInit failed");
return c;
}
@ -52,13 +52,13 @@ EVP_MD_CTX* hash_init(HashAlgorithm alg)
void hash_update(EVP_MD_CTX* c, const void* data, unsigned long len)
{
if ( ! EVP_DigestUpdate(c, data, len) )
zeek::reporter->InternalError("EVP_DigestUpdate failed");
reporter->InternalError("EVP_DigestUpdate failed");
}
void hash_final(EVP_MD_CTX* c, u_char* md)
{
if ( ! EVP_DigestFinal(c, md, NULL) )
zeek::reporter->InternalError("EVP_DigestFinal failed");
reporter->InternalError("EVP_DigestFinal failed");
EVP_MD_CTX_free(c);
}