aboutsummaryrefslogtreecommitdiff
path: root/src/lib/encoding/binascii.h
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2018-12-14 13:07:55 -0500
committerNick Mathewson <nickm@torproject.org>2018-12-14 13:51:51 -0500
commit3c35c0d441cc25f750524056113970a376d8432c (patch)
treee05e798bfd09e022db4908f0070026ec75d317ac /src/lib/encoding/binascii.h
parentcf7342ab6f653c2dc49134024d668b06bac2c96c (diff)
downloadtor-3c35c0d441cc25f750524056113970a376d8432c.tar.gz
tor-3c35c0d441cc25f750524056113970a376d8432c.zip
Add a function to provide an upper bound on base64 decoded length
Diffstat (limited to 'src/lib/encoding/binascii.h')
-rw-r--r--src/lib/encoding/binascii.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/encoding/binascii.h b/src/lib/encoding/binascii.h
index 23cbaa7070..c71ba65dfb 100644
--- a/src/lib/encoding/binascii.h
+++ b/src/lib/encoding/binascii.h
@@ -42,6 +42,7 @@ const char *hex_str(const char *from, size_t fromlen);
#define BASE64_ENCODE_MULTILINE 1
size_t base64_encode_size(size_t srclen, int flags);
+size_t base64_decode_maxsize(size_t srclen);
int base64_encode(char *dest, size_t destlen, const char *src, size_t srclen,
int flags);
int base64_decode(char *dest, size_t destlen, const char *src, size_t srclen);