//--------------------------------------------------------------------------- //The base64 code used is from 'The Secure Programming Cookbook for C and C++', By John Viega, Matt Messier //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- // To prevent multiple includes #ifndef _b64stuffh #define _b64stuffh //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- #include #include //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- unsigned char *spc_base64_encode(unsigned char *input, size_t len, int wrap); unsigned char *spc_base64_decode(unsigned char *buf, size_t *len, int strict, int *err); //--------------------------------------------------------------------------- //--------------------------------------------------------------------------- #endif //---------------------------------------------------------------------------