1#ifndef _BASE64_CODE_H_INCLUDED_ 2#define _BASE64_CODE_H_INCLUDED_ 3 4/*++ 5/* NAME 6/* base64_code 3h 7/* SUMMARY 8/* encode/decode data, base 64 style 9/* SYNOPSIS 10/* #include <base64_code.h> 11/* DESCRIPTION 12/* .nf 13 14 /* 15 * Utility library. 16 */ 17#include <vstring.h> 18 19 /* 20 * External interface. 21 */ 22extern VSTRING *base64_encode_opt(VSTRING *, const char *, ssize_t, int); 23extern VSTRING *base64_decode_opt(VSTRING *, const char *, ssize_t, int); 24 25#define BASE64_FLAG_NONE 0 26#define BASE64_FLAG_APPEND (1<<0) 27 28#define base64_encode(bp, cp, ln) \ 29 base64_encode_opt((bp), (cp), (ln), BASE64_FLAG_NONE) 30#define base64_decode(bp, cp, ln) \ 31 base64_decode_opt((bp), (cp), (ln), BASE64_FLAG_NONE) 32 33/* LICENSE 34/* .ad 35/* .fi 36/* The Secure Mailer license must be distributed with this software. 37/* AUTHOR(S) 38/* Wietse Venema 39/* IBM T.J. Watson Research 40/* P.O. Box 704 41/* Yorktown Heights, NY 10598, USA 42/*--*/ 43 44#endif 45