From 8001d09a9b418e83771813750532b0a29a89847f Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Thu, 26 Aug 2021 23:53:14 +0200 Subject: IMAP: fix base64 length calc. for AUTH=EXTERNAL to make code more correct or readable; to64frombits does not overflow its buffer --- fetchmail.h | 1 + 1 file changed, 1 insertion(+) (limited to 'fetchmail.h') 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); -- cgit v1.2.3