Make BIFs just return ValPtr directly instead of BifReturnVal

This commit is contained in:
Tim Wojtulewicz 2024-01-16 17:17:47 -07:00
parent 5602546f2e
commit 2aaaab4dad
11 changed files with 12 additions and 55 deletions

View file

@ -37,12 +37,11 @@ class ODesc;
namespace zeek::detail {
class Frame;
class BifReturnVal;
} // namespace zeek::detail
namespace zeek::BifFunc {
extern zeek::detail::BifReturnVal md5_hmac_bif(zeek::detail::Frame* frame, const zeek::Args*);
zeek::ValPtr md5_hmac_bif(zeek::detail::Frame* frame, const zeek::Args*);
}
namespace zeek::detail {
@ -211,7 +210,7 @@ private:
inline static bool seeds_initialized = false;
friend void util::detail::hmac_md5(size_t size, const unsigned char* bytes, unsigned char digest[16]);
friend BifReturnVal BifFunc::md5_hmac_bif(zeek::detail::Frame* frame, const Args*);
friend ValPtr BifFunc::md5_hmac_bif(zeek::detail::Frame* frame, const Args*);
};
enum HashKeyTag { HASH_KEY_INT, HASH_KEY_DOUBLE, HASH_KEY_STRING };