aboutsummaryrefslogtreecommitdiff
path: root/src/base64.h
blob: 17e20362373d1540338a625a3fe52df03337fdc1 (plain) (blame)
1
2
3
4
5
6
7
8
9
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 */