1124208Sdes/* $Id: base64.h,v 1.6 2003/08/29 16:59:52 mouring Exp $ */
298937Sdes
3124208Sdes/*
4124208Sdes * Copyright (c) 1996 by Internet Software Consortium.
5124208Sdes *
6124208Sdes * Permission to use, copy, modify, and distribute this software for any
7124208Sdes * purpose with or without fee is hereby granted, provided that the above
8124208Sdes * copyright notice and this permission notice appear in all copies.
9124208Sdes *
10124208Sdes * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
11124208Sdes * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
12124208Sdes * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
13124208Sdes * CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
14124208Sdes * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
15124208Sdes * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
16124208Sdes * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
17124208Sdes * SOFTWARE.
18124208Sdes */
19124208Sdes
20124208Sdes/*
21124208Sdes * Portions Copyright (c) 1995 by International Business Machines, Inc.
22124208Sdes *
23124208Sdes * International Business Machines, Inc. (hereinafter called IBM) grants
24124208Sdes * permission under its copyrights to use, copy, modify, and distribute this
25124208Sdes * Software with or without fee, provided that the above copyright notice and
26124208Sdes * all paragraphs of this notice appear in all copies, and that the name of IBM
27124208Sdes * not be used in connection with the marketing of any product incorporating
28124208Sdes * the Software or modifications thereof, without specific, written prior
29124208Sdes * permission.
30124208Sdes *
31124208Sdes * To the extent it has a right to do so, IBM grants an immunity from suit
32124208Sdes * under its patents, if any, for the use, sale or manufacture of products to
33124208Sdes * the extent that such products are used for performing Domain Name System
34124208Sdes * dynamic updates in TCP/IP networks by means of the Software.  No immunity is
35124208Sdes * granted for any product per se or for any other function of any product.
36124208Sdes *
37124208Sdes * THE SOFTWARE IS PROVIDED "AS IS", AND IBM DISCLAIMS ALL WARRANTIES,
38124208Sdes * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
39124208Sdes * PARTICULAR PURPOSE.  IN NO EVENT SHALL IBM BE LIABLE FOR ANY SPECIAL,
40124208Sdes * DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER ARISING
41124208Sdes * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE, EVEN
42124208Sdes * IF IBM IS APPRISED OF THE POSSIBILITY OF SUCH DAMAGES.
43124208Sdes */
44124208Sdes
4598937Sdes#ifndef _BSD_BASE64_H
4698937Sdes#define _BSD_BASE64_H
4798937Sdes
48124208Sdes#include "includes.h"
4998937Sdes
5098937Sdes#ifndef HAVE___B64_NTOP
5198937Sdes# ifndef HAVE_B64_NTOP
5298937Sdesint b64_ntop(u_char const *src, size_t srclength, char *target,
5398937Sdes    size_t targsize);
5498937Sdes# endif /* !HAVE_B64_NTOP */
55124208Sdes# define __b64_ntop(a,b,c,d) b64_ntop(a,b,c,d)
5698937Sdes#endif /* HAVE___B64_NTOP */
5798937Sdes
58113908Sdes#ifndef HAVE___B64_PTON
59113908Sdes# ifndef HAVE_B64_PTON
60113908Sdesint b64_pton(char const *src, u_char *target, size_t targsize);
61113908Sdes# endif /* !HAVE_B64_PTON */
62124208Sdes# define __b64_pton(a,b,c) b64_pton(a,b,c)
63113908Sdes#endif /* HAVE___B64_PTON */
64113908Sdes
6598937Sdes#endif /* _BSD_BASE64_H */
66