base64.h revision 124209
1245803Stheraven/* $Id: base64.h,v 1.6 2003/08/29 16:59:52 mouring Exp $ */
2245803Stheraven
3245803Stheraven/*
4245803Stheraven * Copyright (c) 1996 by Internet Software Consortium.
5245803Stheraven *
6245803Stheraven * Permission to use, copy, modify, and distribute this software for any
7245803Stheraven * purpose with or without fee is hereby granted, provided that the above
8245803Stheraven * copyright notice and this permission notice appear in all copies.
9245803Stheraven *
10245803Stheraven * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
11245803Stheraven * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
12245803Stheraven * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
13245803Stheraven * CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
14245803Stheraven * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
15245803Stheraven * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
16245803Stheraven * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
17245803Stheraven * SOFTWARE.
18245803Stheraven */
19245803Stheraven
20245803Stheraven/*
21245803Stheraven * Portions Copyright (c) 1995 by International Business Machines, Inc.
22245803Stheraven *
23245803Stheraven * International Business Machines, Inc. (hereinafter called IBM) grants
24245803Stheraven * permission under its copyrights to use, copy, modify, and distribute this
25245803Stheraven * Software with or without fee, provided that the above copyright notice and
26245803Stheraven * all paragraphs of this notice appear in all copies, and that the name of IBM
27245803Stheraven * not be used in connection with the marketing of any product incorporating
28245803Stheraven * the Software or modifications thereof, without specific, written prior
29245803Stheraven * permission.
30245803Stheraven *
31245803Stheraven * To the extent it has a right to do so, IBM grants an immunity from suit
32245803Stheraven * under its patents, if any, for the use, sale or manufacture of products to
33245803Stheraven * the extent that such products are used for performing Domain Name System
34245803Stheraven * dynamic updates in TCP/IP networks by means of the Software.  No immunity is
35245803Stheraven * granted for any product per se or for any other function of any product.
36245803Stheraven *
37245803Stheraven * THE SOFTWARE IS PROVIDED "AS IS", AND IBM DISCLAIMS ALL WARRANTIES,
38245803Stheraven * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
39245803Stheraven * PARTICULAR PURPOSE.  IN NO EVENT SHALL IBM BE LIABLE FOR ANY SPECIAL,
40245803Stheraven * DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER ARISING
41292876Stheraven * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE, EVEN
42292876Stheraven * IF IBM IS APPRISED OF THE POSSIBILITY OF SUCH DAMAGES.
43292876Stheraven */
44292876Stheraven
45292876Stheraven#ifndef _BSD_BASE64_H
46245803Stheraven#define _BSD_BASE64_H
47245803Stheraven
48245803Stheraven#include "includes.h"
49245803Stheraven
50245803Stheraven#ifndef HAVE___B64_NTOP
51245803Stheraven# ifndef HAVE_B64_NTOP
52245803Stheravenint b64_ntop(u_char const *src, size_t srclength, char *target,
53245803Stheraven    size_t targsize);
54245803Stheraven# endif /* !HAVE_B64_NTOP */
55245803Stheraven# define __b64_ntop(a,b,c,d) b64_ntop(a,b,c,d)
56245803Stheraven#endif /* HAVE___B64_NTOP */
57245803Stheraven
58245803Stheraven#ifndef HAVE___B64_PTON
59245803Stheraven# ifndef HAVE_B64_PTON
60245803Stheravenint b64_pton(char const *src, u_char *target, size_t targsize);
61245803Stheraven# endif /* !HAVE_B64_PTON */
62245803Stheraven# define __b64_pton(a,b,c) b64_pton(a,b,c)
63245803Stheraven#endif /* HAVE___B64_PTON */
64245803Stheraven
65245803Stheraven#endif /* _BSD_BASE64_H */
66245803Stheraven