1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2024-12-16 10:20:02 +02:00
pgbackrest/src/common/encode/base64.h

21 lines
1.0 KiB
C
Raw Normal View History

2017-10-18 17:14:26 +02:00
/***********************************************************************************************************************************
Base64 Binary to String Encode/Decode
The high-level functions in encode.c should be used in preference to these low-level functions.
***********************************************************************************************************************************/
#ifndef BASE64_H
#define BASE64_H
#include "common/type.h"
/***********************************************************************************************************************************
Functions
***********************************************************************************************************************************/
void encodeToStrBase64(const unsigned char *source, int sourceSize, char *destination);
int encodeToStrSizeBase64(int sourceSize);
void decodeToBinBase64(const char *source, unsigned char *destination);
int decodeToBinSizeBase64(const char *source);
void decodeToBinValidateBase64(const char *source);
#endif