diff --git a/lib/parse.h b/lib/parse.h index 4acc2aa168..adc2d98148 100644 --- a/lib/parse.h +++ b/lib/parse.h @@ -48,4 +48,8 @@ class InvalidBase64Exception string base64_encode (const char* from, size_t length) throw(InvalidBase64Exception); string base64_decode (const char* from, size_t length) throw(InvalidBase64Exception); +inlie string base64_decode (string const& from) throw(InvalidBase64Exception) +{ + return base64_decode(from.c_str(), from.length()); +}