aboutsummaryrefslogtreecommitdiffstats
path: root/fetchmail.h
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2021-08-26 23:53:14 +0200
committerMatthias Andree <matthias.andree@gmx.de>2021-08-26 23:53:14 +0200
commit8001d09a9b418e83771813750532b0a29a89847f (patch)
treed660b22fc0e8681ad8ef9908b71d0de8b44cfe1f /fetchmail.h
parent84580ab863845586828269ebc7c3d0ad9376b3e3 (diff)
downloadfetchmail-8001d09a9b418e83771813750532b0a29a89847f.tar.gz
fetchmail-8001d09a9b418e83771813750532b0a29a89847f.tar.bz2
fetchmail-8001d09a9b418e83771813750532b0a29a89847f.zip
IMAP: fix base64 length calc. for AUTH=EXTERNAL
to make code more correct or readable; to64frombits does not overflow its buffer
Diffstat (limited to 'fetchmail.h')
-rw-r--r--fetchmail.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/fetchmail.h b/fetchmail.h
index a5f15e8d..717ebd6f 100644
--- a/fetchmail.h
+++ b/fetchmail.h
@@ -634,6 +634,7 @@ int prc_parse_file(const char *, const flag);
int prc_filecheck(const char *, const flag);
/* base64.c */
+unsigned len64frombits(unsigned inlen); /** calculate length needed to encode inlen octets. warnings: 1. caller needs to add 1 for a trailing \0 byte himself. 2. returns 0 for inlen 0! */
int to64frombits(char *, const void *, int inlen, size_t outlen);
int from64tobits(void *, const char *, int mxoutlen);