*** empty log message ***

svn path=/trunk/boinc/; revision=2881
This commit is contained in:
David Anderson 2004-01-15 20:56:32 +00:00
parent b885e31677
commit 1fbcf2af0e
3 changed files with 17 additions and 14 deletions

View File

@ -9204,3 +9204,9 @@ David Jan 14 2004
net_xfer.C net_xfer.C
win_build/ win_build/
boinc_cli.vcproj boinc_cli.vcproj
David Jan 15 2004
- factored base64 declarations
lib/
base64.h (new)

11
lib/base64.h Normal file
View File

@ -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());
}

View File

@ -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 void extract_venue(const char* in, const char* venue_name, char* out);
extern char* sgets(char* buf, int len, char* &in); extern char* sgets(char* buf, int len, char* &in);
extern bool extract_xml_record(const std::string &field, const char *tag, std::string &record); 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