From 0aa0a8cfa430bb72bd7149bdc3a2d4d29e59e363 Mon Sep 17 00:00:00 2001 From: Bryan Roe Date: Mon, 4 Mar 2019 14:29:52 -0800 Subject: [PATCH] Added ILibBase64DecodeEx --- microstack/ILibParsers.c | 5 +++++ microstack/ILibParsers.h | 1 + 2 files changed, 6 insertions(+) diff --git a/microstack/ILibParsers.c b/microstack/ILibParsers.c index 70c8fc2..e8ef0a7 100644 --- a/microstack/ILibParsers.c +++ b/microstack/ILibParsers.c @@ -6034,6 +6034,11 @@ int ILibBase64DecodeLength(const int inputLen) return ((inputLen * 3) / 4) + 4; } +int ILibBase64DecodeEx(unsigned char* input, const int inputlen, unsigned char* output) +{ + return(ILibBase64Decode(input, inputlen, &output)); +} + /*! \fn ILibBase64Decode(unsigned char* input, const int inputlen, unsigned char** output) \brief Decode a base64 encoded stream discarding padding, line breaks and noise \par diff --git a/microstack/ILibParsers.h b/microstack/ILibParsers.h index 3197c15..172a9e5 100644 --- a/microstack/ILibParsers.h +++ b/microstack/ILibParsers.h @@ -1266,6 +1266,7 @@ int ILibIsRunningOnChainThread(void* chain); int ILibBase64DecodeLength(const int inputLen); int ILibBase64Encode(unsigned char* input, const int inputlen, unsigned char** output); int ILibBase64Decode(unsigned char* input, const int inputlen, unsigned char** output); + int ILibBase64DecodeEx(unsigned char* input, const int inputlen, unsigned char* output); /* Compression Handling Methods */ char* ILibDecompressString(unsigned char* CurrentCompressed, const int bufferLength, const int DecompressedLength);