mirror of
https://github.com/zeek/zeek.git
synced 2025-10-03 23:28:20 +00:00
Move a few low-use classes to namespaces
This commit is contained in:
parent
886fc102b8
commit
c9ab1f93e7
53 changed files with 252 additions and 122 deletions
|
@ -6,6 +6,8 @@
|
|||
|
||||
#include <math.h>
|
||||
|
||||
namespace zeek::detail {
|
||||
|
||||
int Base64Converter::default_base64_table[256];
|
||||
const std::string Base64Converter::default_alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
||||
|
||||
|
@ -278,3 +280,15 @@ zeek::String* encode_base64(const zeek::String* s, const zeek::String* a, Connec
|
|||
|
||||
return new zeek::String(true, (u_char*)outbuf, outlen);
|
||||
}
|
||||
|
||||
} // namespace zeek::detail
|
||||
|
||||
zeek::String* decode_base64(const zeek::String* s, const zeek::String* a, Connection* conn)
|
||||
{
|
||||
return zeek::detail::decode_base64(s, a, conn);
|
||||
}
|
||||
|
||||
zeek::String* encode_base64(const zeek::String* s, const zeek::String* a, Connection* conn)
|
||||
{
|
||||
return zeek::detail::encode_base64(s ,a ,conn);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue