mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-11 13:43:47 +01:00
binascii: Fix the base64_encode_nopad() buffer length requirement
Comment-only change. Part of 29660.
This commit is contained in:
parent
5e2cba8eb4
commit
c616f45776
@ -321,8 +321,10 @@ base64_encode(char *dest, size_t destlen, const char *src, size_t srclen,
|
||||
return (int) enclen;
|
||||
}
|
||||
|
||||
/** As base64_encode, but do not add any internal spaces or external padding
|
||||
* to the output stream. */
|
||||
/** As base64_encode, but do not add any internal spaces, and remove external
|
||||
* padding from the output stream.
|
||||
* dest must be at least base64_encode_size(srclen, 0), including space for
|
||||
* the removed external padding. */
|
||||
int
|
||||
base64_encode_nopad(char *dest, size_t destlen,
|
||||
const uint8_t *src, size_t srclen)
|
||||
|
Loading…
Reference in New Issue
Block a user