diff options
author | dormando <dormando@rydia.net> | 2020-11-07 14:58:08 -0800 |
---|---|---|
committer | dormando <dormando@rydia.net> | 2021-06-07 22:06:55 -0700 |
commit | 17640549935019ca3367aaacaabc66550a6f2908 (patch) | |
tree | d044c3696feebf1c3db139dcab1152feca72c538 /base64.h | |
parent | 4946d37b5e57ad5d1c6b0c98e5b96a2f63bcf2e7 (diff) | |
download | memcached-17640549935019ca3367aaacaabc66550a6f2908.tar.gz |
meta: allow base64'ed binary keys with 'b' flag
ie: ms [key] b
if 'k' flag is given and key is binary, returns as binary encoded.
Diffstat (limited to 'base64.h')
-rw-r--r-- | base64.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/base64.h b/base64.h new file mode 100644 index 0000000..efbbbc8 --- /dev/null +++ b/base64.h @@ -0,0 +1,17 @@ +/* + * Base64 encoding/decoding (RFC1341) + * Copyright (c) 2005, Jouni Malinen <j@w1.fi> + * + * This software may be distributed under the terms of the BSD license. + * See base64.c for more details + */ + +#ifndef BASE64_H +#define BASE64_H + +size_t base64_encode(const unsigned char *src, size_t len, + unsigned char *out, size_t out_len); +size_t base64_decode(const unsigned char *src, size_t len, + unsigned char *out, size_t out_len); + +#endif /* BASE64_H */ |