PKIFBase64.h

Go to the documentation of this file.
00001 
00009 #ifndef __BASE64_H__
00010 #define __BASE64_H__
00011 #include "PKIFdll.h"
00012 
00013 // base64 utility functions
00014 // decodes encoded into a newly allocated buffer and points decoded at it.
00015 // call WSPACFree to free the result
00016 bool CAC_API B64Decode(const char * encoded, unsigned char ** decoded, unsigned long * decodedLen);
00017 // same as B64Decode, but ignores PEM lines
00018 bool CAC_API PEMDecode(const char * encoded, unsigned char ** decoded, unsigned long * decodedLen);
00019 // encodes plain into a newly allocated buffer and points encoded at it
00020 bool CAC_API B64Encode(const unsigned char * plain, unsigned long plainLen, char ** encoded);
00021 
00022 bool CAC_API PEMDecode_l(const char * encoded, unsigned long encodedLen, unsigned char ** decoded, unsigned long * decodedLen);
00023 
00024 #endif //__BASE64_H__

Generated on Mon Nov 15 11:15:53 2010 for PublicKeyInfrastructureFramework(PKIF) by  doxygen 1.5.6