and add bae64 bif tests.

This commit is contained in:
Bernhard Amann 2013-03-12 09:33:49 -07:00
parent a1896fde90
commit a5161783ef
3 changed files with 21 additions and 1 deletions

View file

@ -261,7 +261,7 @@ BroString* encode_base64(const BroString* s, const BroString* a)
char* outbuf = 0;
int outlen = 0;
Base64Decoder enc(0);
Base64Decoder enc(0, a ? a->CheckString() : "");
enc.Encode(s->Len(), (const unsigned char*) s->Bytes(), &outlen, &outbuf);
return new BroString(1, (u_char*)outbuf, outlen);