mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 16:18:19 +00:00
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:
parent
9f802b2a4d
commit
fe0c22c789
240 changed files with 6823 additions and 6787 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue