diff --git a/checkin_notes b/checkin_notes index d7b9b0638b..809ff93e75 100755 --- a/checkin_notes +++ b/checkin_notes @@ -9204,3 +9204,9 @@ David Jan 14 2004 net_xfer.C win_build/ boinc_cli.vcproj + +David Jan 15 2004 + - factored base64 declarations + + lib/ + base64.h (new) diff --git a/lib/base64.h b/lib/base64.h new file mode 100644 index 0000000000..486f1b6ee9 --- /dev/null +++ b/lib/base64.h @@ -0,0 +1,11 @@ +class InvalidBase64Exception +{ +}; + +string r_base64_encode (const char* from, size_t length) throw(InvalidBase64Exception); +string r_base64_decode (const char* from, size_t length) throw(InvalidBase64Exception); +inline string r_base64_decode (string const& from) throw(InvalidBase64Exception) +{ + return r_base64_decode(from.c_str(), from.length()); +} + diff --git a/lib/parse.h b/lib/parse.h index aa18146f34..019fc544d2 100644 --- a/lib/parse.h +++ b/lib/parse.h @@ -41,17 +41,3 @@ extern void replace_element(char* buf, char* start, char* end, char* replacement //extern void extract_venue(const char* in, const char* venue_name, char* out); extern char* sgets(char* buf, int len, char* &in); extern bool extract_xml_record(const std::string &field, const char *tag, std::string &record); - -#if 0 -class InvalidBase64Exception -{ -}; - -string r_base64_encode (const char* from, size_t length) throw(InvalidBase64Exception); -string r_base64_decode (const char* from, size_t length) throw(InvalidBase64Exception); -inline string r_base64_decode (string const& from) throw(InvalidBase64Exception) -{ - return r_base64_decode(from.c_str(), from.length()); -} - -#endif