diff options
| author | Onur Gündüz <ogunduz@gmail.com> | 2026-06-20 20:10:56 +0200 |
|---|---|---|
| committer | Onur Gündüz <ogunduz@gmail.com> | 2026-06-21 05:57:19 +0200 |
| commit | 6b969d25ce136eaf695222bd1a10bff1ecac0220 (patch) | |
| tree | c23afb50c28b9deaddae5c6526a74ee11cf2d865 /tools/server/base64.h | |
| parent | d4bdb8dae753462f621507d5fc3582e0e53da35c (diff) | |
| download | ffwd-6b969d25ce136eaf695222bd1a10bff1ecac0220.tar.gz ffwd-6b969d25ce136eaf695222bd1a10bff1ecac0220.zip | |
all: split Makefile and reorg library/tools
Diffstat (limited to 'tools/server/base64.h')
| -rw-r--r-- | tools/server/base64.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/server/base64.h b/tools/server/base64.h new file mode 100644 index 0000000..88d88b3 --- /dev/null +++ b/tools/server/base64.h @@ -0,0 +1,10 @@ +#ifndef FFWD_BASE64_H +#define FFWD_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 /* FFWD_BASE64_H */ |
