diff options
Diffstat (limited to 'src/base64.h')
| -rw-r--r-- | src/base64.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/base64.h b/src/base64.h new file mode 100644 index 0000000..17e2036 --- /dev/null +++ b/src/base64.h @@ -0,0 +1,10 @@ +#ifndef EMBED_BASE64_H +#define EMBED_BASE64_H + +#include <stddef.h> + +/* Standard base64 (with '=' padding) of n bytes. Returns a NUL-terminated heap + * string the caller frees; die-on-OOM, so it never returns NULL. */ +char *base64_encode(const unsigned char *src, size_t n); + +#endif /* EMBED_BASE64_H */ |
