mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 07:38:19 +00:00
Move everything in util.h to zeek::util namespace.
This commit includes renaming a number of methods prefixed with bro_ to be prefixed with zeek_.
This commit is contained in:
parent
8862b585fa
commit
8d2d867a65
179 changed files with 1277 additions and 1033 deletions
|
@ -199,7 +199,7 @@ private:
|
|||
inline static uint8_t shared_hmac_md5_key[16];
|
||||
inline static bool seeds_initialized = false;
|
||||
|
||||
friend void ::hmac_md5(size_t size, const unsigned char* bytes, unsigned char digest[16]);
|
||||
friend void zeek::util::hmac_md5(size_t size, const unsigned char* bytes, unsigned char digest[16]);
|
||||
friend BifReturnVal zeek::BifFunc::md5_hmac_bif(zeek::detail::Frame* frame, const zeek::Args*);
|
||||
};
|
||||
|
||||
|
@ -258,7 +258,7 @@ public:
|
|||
int Size() const { return size; }
|
||||
hash_t Hash() const { return hash; }
|
||||
|
||||
unsigned int MemoryAllocation() const { return padded_sizeof(*this) + pad_size(size); }
|
||||
unsigned int MemoryAllocation() const { return padded_sizeof(*this) + zeek::util::pad_size(size); }
|
||||
|
||||
static hash_t HashBytes(const void* bytes, int size);
|
||||
protected:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue