diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2021-08-26 23:53:14 +0200 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2021-08-26 23:53:14 +0200 |
commit | 8001d09a9b418e83771813750532b0a29a89847f (patch) | |
tree | d660b22fc0e8681ad8ef9908b71d0de8b44cfe1f /fetchmail.h | |
parent | 84580ab863845586828269ebc7c3d0ad9376b3e3 (diff) | |
download | fetchmail-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.h | 1 |
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); |