X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/69819af4834557e60c33bb378e29cf3d4e8269f8..e99caef6d3e09d481849d3bdc51871f4c7bb574a:/sbr/base64.c?ds=inline diff --git a/sbr/base64.c b/sbr/base64.c index 2afad491..ef3aa32a 100644 --- a/sbr/base64.c +++ b/sbr/base64.c @@ -5,9 +5,10 @@ * complete copyright information. */ -#include -#include -#include +#include "h/mh.h" +#include "error.h" +#include "h/mime.h" +#include "h/md5.h" #include static const char nib2b64[0x40+1] = @@ -248,7 +249,8 @@ static const unsigned char b642nib[0x80] = { */ int decodeBase64 (const char *encoded, unsigned char **decoded, size_t *len, - int skip_crs, unsigned char *digest) { + int skip_crs, unsigned char *digest) +{ const char *cp = encoded; int bitno, skip; uint32_t bits; @@ -351,7 +353,8 @@ test_end: * is allocated by the function and must be freed by the caller. */ void -hexify (const unsigned char *input, size_t len, char **output) { +hexify (const unsigned char *input, size_t len, char **output) +{ /* Start with a charstring capacity that's arbitrarily larger than len. */ const charstring_t tmp = charstring_create (2 * len); const unsigned char *cp = input;