summaryrefslogtreecommitdiffstats
path: root/gl/base64.h
diff options
context:
space:
mode:
Diffstat (limited to 'gl/base64.h')
-rw-r--r--gl/base64.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/gl/base64.h b/gl/base64.h
index 63b6abc..2be394b 100644
--- a/gl/base64.h
+++ b/gl/base64.h
@@ -1,5 +1,5 @@
1/* base64.h -- Encode binary data using printable characters. 1/* base64.h -- Encode binary data using printable characters.
2 Copyright (C) 2004, 2005, 2006 Free Software Foundation, Inc. 2 Copyright (C) 2004, 2005, 2006, 2009, 2010 Free Software Foundation, Inc.
3 Written by Simon Josefsson. 3 Written by Simon Josefsson.
4 4
5 This program is free software; you can redistribute it and/or modify 5 This program is free software; you can redistribute it and/or modify
@@ -38,24 +38,24 @@ struct base64_decode_context
38extern bool isbase64 (char ch); 38extern bool isbase64 (char ch);
39 39
40extern void base64_encode (const char *restrict in, size_t inlen, 40extern void base64_encode (const char *restrict in, size_t inlen,
41 char *restrict out, size_t outlen); 41 char *restrict out, size_t outlen);
42 42
43extern size_t base64_encode_alloc (const char *in, size_t inlen, char **out); 43extern size_t base64_encode_alloc (const char *in, size_t inlen, char **out);
44 44
45extern void base64_decode_ctx_init (struct base64_decode_context *ctx); 45extern void base64_decode_ctx_init (struct base64_decode_context *ctx);
46 46
47extern bool base64_decode_ctx (struct base64_decode_context *ctx, 47extern bool base64_decode_ctx (struct base64_decode_context *ctx,
48 const char *restrict in, size_t inlen, 48 const char *restrict in, size_t inlen,
49 char *restrict out, size_t *outlen); 49 char *restrict out, size_t *outlen);
50 50
51extern bool base64_decode_alloc_ctx (struct base64_decode_context *ctx, 51extern bool base64_decode_alloc_ctx (struct base64_decode_context *ctx,
52 const char *in, size_t inlen, 52 const char *in, size_t inlen,
53 char **out, size_t *outlen); 53 char **out, size_t *outlen);
54 54
55#define base64_decode(in, inlen, out, outlen) \ 55#define base64_decode(in, inlen, out, outlen) \
56 base64_decode_ctx (NULL, in, inlen, out, outlen) 56 base64_decode_ctx (NULL, in, inlen, out, outlen)
57 57
58#define base64_decode_alloc(in, inlen, out, outlen) \ 58#define base64_decode_alloc(in, inlen, out, outlen) \
59 base64_decode_alloc_ctx (NULL, in, inlen, out, outlen) 59 base64_decode_alloc_ctx (NULL, in, inlen, out, outlen)
60 60
61#endif /* BASE64_H */ 61#endif /* BASE64_H */