mirror of
https://github.com/pgbackrest/pgbackrest.git
synced 2024-12-16 10:20:02 +02:00
21 lines
1.0 KiB
C
21 lines
1.0 KiB
C
|
/***********************************************************************************************************************************
|
||
|
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
|