00001 #include <stdio.h>
00002 #include <stdint.h>
00003 #include "../../../../common/util.h"
00004
00005 OSCAP_HIDDEN_START;
00006
00007 #if defined(WANT_XBASE64)
00008 # ifndef XBASE64_H
00009 # define XBASE64_H
00010
00011 # define XBASE64_PADDING_CHAR '_'
00012
00013 size_t xbase64_encode (const uint8_t *, size_t, char **);
00014 size_t xbase64_decode (const char *, size_t, uint8_t **);
00015
00016 # endif
00017 #endif
00018
00019 #if defined(WANT_BASE64)
00020 # ifndef BASE64_H
00021 # define BASE64_H
00022
00023 # define BASE64_PADDING_CHAR '='
00024
00025 size_t base64_encode (const uint8_t *, size_t, char **);
00026 size_t base64_decode (const char *, size_t, uint8_t **);
00027
00028 # endif
00029 #endif
00030
00031 OSCAP_HIDDEN_END;