X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/mLib/blobdiff_plain/ceba19865c063cf6d2fa5ba3ebcf43674a101549..54116dad62ece5b7ca1b6622c6f26b938ac53c03:/base64.h?ds=sidebyside diff --git a/base64.h b/base64.h index c5943d3..18a1314 100644 --- a/base64.h +++ b/base64.h @@ -1,6 +1,6 @@ /* -*-c-*- * - * $Id: base64.h,v 1.1 1999/05/17 20:35:00 mdw Exp $ + * $Id: base64.h,v 1.3 1999/12/10 23:42:04 mdw Exp $ * * Base64 encoding and decoding * @@ -30,13 +30,19 @@ /*----- Revision history --------------------------------------------------* * * $Log: base64.h,v $ + * Revision 1.3 1999/12/10 23:42:04 mdw + * Change header file guard names. + * + * Revision 1.2 1999/05/18 21:45:27 mdw + * Allow Base64 encode and decode of arbitrary rubbish. + * * Revision 1.1 1999/05/17 20:35:00 mdw * Base64 encoding and decoding support. * */ -#ifndef BASE64_H -#define BASE64_H +#ifndef MLIB_BASE64_H +#define MLIB_BASE64_H #ifdef __cplusplus extern "C" { @@ -61,7 +67,7 @@ typedef struct base64_ctx { /* --- @base64_encode@ --- * * * Arguments: @base64_ctx *ctx@ = pointer to a context block - * @const unsigned char *src@ = pointer to a source buffer + * @const void *p@ = pointer to a source buffer * @size_t sz@ = size of the source buffer * @dstr *d@ = pointer to destination string * @@ -72,13 +78,13 @@ typedef struct base64_ctx { */ extern void base64_encode(base64_ctx */*ctx*/, - const unsigned char */*src*/, size_t /*sz*/, + const void */*p*/, size_t /*sz*/, dstr */*d*/); /* --- @base64_decode@ --- * * * Arguments: @base64_ctx *ctx@ = pointer to a context block - * @const unsigned char *src@ = pointer to a source buffer + * @const void *p@ = pointer to a source buffer * @size_t sz@ = size of the source buffer * @dstr *d@ = pointer to destination string * @@ -89,7 +95,7 @@ extern void base64_encode(base64_ctx */*ctx*/, */ extern void base64_decode(base64_ctx */*ctx*/, - const unsigned char */*src*/, size_t /*sz*/, + const void */*p*/, size_t /*sz*/, dstr */*d*/); /* --- @base64_init@ --- *