/* -*-c-*-
*
- * $Id: base64.h,v 1.1 1999/05/17 20:35:00 mdw Exp $
+ * $Id: base64.h,v 1.4 2004/04/08 01:36:11 mdw Exp $
*
* Base64 encoding and decoding
*
* MA 02111-1307, USA.
*/
-/*----- Revision history --------------------------------------------------*
- *
- * $Log: base64.h,v $
- * 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" {
/* --- @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
*
*/
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
*
*/
extern void base64_decode(base64_ctx */*ctx*/,
- const unsigned char */*src*/, size_t /*sz*/,
+ const void */*p*/, size_t /*sz*/,
dstr */*d*/);
/* --- @base64_init@ --- *