X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Futils.h;h=119cd281e104b8101dad5671dbd8b1da722c2062;hp=f93d2ae95b04a11f1e075f02b5fa5805c1a06008;hb=52ad80309f8c9a5c1498f6ff6b3e11d8997290d7;hpb=8f0378df0b2708cb8e20bcfce6d3ab55ca7c2a40 diff --git a/src/utils.h b/src/utils.h index f93d2ae9..119cd281 100644 --- a/src/utils.h +++ b/src/utils.h @@ -125,4 +125,10 @@ double random_float PARAMS ((void)); int run_with_timeout PARAMS ((double, void (*) (void *), void *)); void xsleep PARAMS ((double)); +/* How many bytes it will take to store LEN bytes in base64. */ +#define BASE64_LENGTH(len) (4 * (((len) + 2) / 3)) + +void base64_encode PARAMS ((const char *, char *, int)); +int base64_decode PARAMS ((const char *, char *)); + #endif /* UTILS_H */