mirror of
https://github.com/zeek/zeek.git
synced 2025-10-05 16:18:19 +00:00
Merge branch 'topic/jgras/base64-logging' of https://github.com/J-Gras/bro
* 'topic/jgras/base64-logging' of https://github.com/J-Gras/bro: Update calls of Base64 functions. Refactoring of Base64 functions. I've removed the additional bif for encoding with a connection, as I'm not sure there's much of a use case for it; we can always add it back later if it turns out there is. I've also renamed decode_base64_intern() to decode_base64_conn() to be a bit more explicit about the difference.
This commit is contained in:
commit
f2dbe7f01d
16 changed files with 172 additions and 38 deletions
|
@ -270,7 +270,7 @@ event http_header(c: connection, is_orig: bool, name: string, value: string) &pr
|
|||
{
|
||||
if ( /^[bB][aA][sS][iI][cC] / in value )
|
||||
{
|
||||
local userpass = decode_base64(sub(value, /[bB][aA][sS][iI][cC][[:blank:]]/, ""));
|
||||
local userpass = decode_base64_conn(c$id, sub(value, /[bB][aA][sS][iI][cC][[:blank:]]/, ""));
|
||||
local up = split_string(userpass, /:/);
|
||||
if ( |up| >= 2 )
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue