Replace deprecated usage of BifFunc:: with zeek::BifFunc::

Names of functions also changed slightly, like bro_fmt -> fmt_bif.

Should generally be unusual/unexpected to see somone calling these
directly from C++ in their plugin, but since technically possible in
previous versions, I also removed the "private" restriction on accessing
the BifReturnVal member.
This commit is contained in:
Jon Siwek 2020-05-14 14:21:30 -07:00
parent 0db5c920f2
commit ca1e5fe4be
4 changed files with 6 additions and 10 deletions

View file

@ -30,9 +30,9 @@ class BroString;
class Val;
class Frame;
class BifReturnVal;
namespace BifFunc {
extern BifReturnVal bro_md5_hmac(Frame* frame, const zeek::Args*);
}
namespace zeek { namespace BifFunc {
extern BifReturnVal md5_hmac_bif(Frame* frame, const zeek::Args*);
}}
typedef uint64_t hash_t;
typedef uint64_t hash64_t;
@ -196,7 +196,7 @@ private:
inline static bool seeds_initialized = false;
friend void hmac_md5(size_t size, const unsigned char* bytes, unsigned char digest[16]);
friend BifReturnVal BifFunc::bro_md5_hmac(Frame* frame, const zeek::Args*);
friend BifReturnVal zeek::BifFunc::md5_hmac_bif(Frame* frame, const zeek::Args*);
};
typedef enum {