diff options
Diffstat (limited to 'src/microhttpd/mhd_str.h')
-rw-r--r-- | src/microhttpd/mhd_str.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/microhttpd/mhd_str.h b/src/microhttpd/mhd_str.h index e2964406..f7a4f79f 100644 --- a/src/microhttpd/mhd_str.h +++ b/src/microhttpd/mhd_str.h | |||
@@ -740,6 +740,16 @@ MHD_str_quote (const char *unquoted, | |||
740 | #ifdef BAUTH_SUPPORT | 740 | #ifdef BAUTH_SUPPORT |
741 | 741 | ||
742 | /** | 742 | /** |
743 | * Returns the maximum possible size of the Base64 decoded data. | ||
744 | * The real recoded size could be up to two bytes smaller. | ||
745 | * @param enc_size the size of encoded data, in characters | ||
746 | * @return the maximum possible size of the decoded data, in bytes, if | ||
747 | * @a enc_size is valid (properly padded), | ||
748 | * undefined value smaller then @a enc_size if @a enc_size is not valid | ||
749 | */ | ||
750 | #define MHD_base64_max_dec_size_(enc_size) (((enc_size) / 4) * 3) | ||
751 | |||
752 | /** | ||
743 | * Convert Base64 encoded string to binary data. | 753 | * Convert Base64 encoded string to binary data. |
744 | * @param base64 the input string with Base64 encoded data, could be NOT zero | 754 | * @param base64 the input string with Base64 encoded data, could be NOT zero |
745 | * terminated | 755 | * terminated |