//---------------------------------------------------------------------------
//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 <stdlib.h>
#include <string.h>
//---------------------------------------------------------------------------
//---------------------------------------------------------------------------
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
//---------------------------------------------------------------------------
syntax highlighted by Code2HTML, v. 0.9.1