1*515d0f9aSBen Lindstrom /*
2*515d0f9aSBen Lindstrom  * Copyright (c) 1996 by Internet Software Consortium.
3*515d0f9aSBen Lindstrom  *
4*515d0f9aSBen Lindstrom  * Permission to use, copy, modify, and distribute this software for any
5*515d0f9aSBen Lindstrom  * purpose with or without fee is hereby granted, provided that the above
6*515d0f9aSBen Lindstrom  * copyright notice and this permission notice appear in all copies.
7*515d0f9aSBen Lindstrom  *
8*515d0f9aSBen Lindstrom  * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
9*515d0f9aSBen Lindstrom  * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
10*515d0f9aSBen Lindstrom  * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
11*515d0f9aSBen Lindstrom  * CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
12*515d0f9aSBen Lindstrom  * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
13*515d0f9aSBen Lindstrom  * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
14*515d0f9aSBen Lindstrom  * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
15*515d0f9aSBen Lindstrom  * SOFTWARE.
16*515d0f9aSBen Lindstrom  */
17*515d0f9aSBen Lindstrom 
18*515d0f9aSBen Lindstrom /*
19*515d0f9aSBen Lindstrom  * Portions Copyright (c) 1995 by International Business Machines, Inc.
20*515d0f9aSBen Lindstrom  *
21*515d0f9aSBen Lindstrom  * International Business Machines, Inc. (hereinafter called IBM) grants
22*515d0f9aSBen Lindstrom  * permission under its copyrights to use, copy, modify, and distribute this
23*515d0f9aSBen Lindstrom  * Software with or without fee, provided that the above copyright notice and
24*515d0f9aSBen Lindstrom  * all paragraphs of this notice appear in all copies, and that the name of IBM
25*515d0f9aSBen Lindstrom  * not be used in connection with the marketing of any product incorporating
26*515d0f9aSBen Lindstrom  * the Software or modifications thereof, without specific, written prior
27*515d0f9aSBen Lindstrom  * permission.
28*515d0f9aSBen Lindstrom  *
29*515d0f9aSBen Lindstrom  * To the extent it has a right to do so, IBM grants an immunity from suit
30*515d0f9aSBen Lindstrom  * under its patents, if any, for the use, sale or manufacture of products to
31*515d0f9aSBen Lindstrom  * the extent that such products are used for performing Domain Name System
32*515d0f9aSBen Lindstrom  * dynamic updates in TCP/IP networks by means of the Software.  No immunity is
33*515d0f9aSBen Lindstrom  * granted for any product per se or for any other function of any product.
34*515d0f9aSBen Lindstrom  *
35*515d0f9aSBen Lindstrom  * THE SOFTWARE IS PROVIDED "AS IS", AND IBM DISCLAIMS ALL WARRANTIES,
36*515d0f9aSBen Lindstrom  * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
37*515d0f9aSBen Lindstrom  * PARTICULAR PURPOSE.  IN NO EVENT SHALL IBM BE LIABLE FOR ANY SPECIAL,
38*515d0f9aSBen Lindstrom  * DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER ARISING
39*515d0f9aSBen Lindstrom  * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE, EVEN
40*515d0f9aSBen Lindstrom  * IF IBM IS APPRISED OF THE POSSIBILITY OF SUCH DAMAGES.
41*515d0f9aSBen Lindstrom  */
42e9cf357aSDamien Miller 
433c06f6a0SBen Lindstrom #ifndef _BSD_BASE64_H
443c06f6a0SBen Lindstrom #define _BSD_BASE64_H
453c06f6a0SBen Lindstrom 
46*515d0f9aSBen Lindstrom #include "includes.h"
473c06f6a0SBen Lindstrom 
483c06f6a0SBen Lindstrom #ifndef HAVE___B64_NTOP
493c06f6a0SBen Lindstrom # ifndef HAVE_B64_NTOP
503c06f6a0SBen Lindstrom int b64_ntop(u_char const *src, size_t srclength, char *target,
513c06f6a0SBen Lindstrom     size_t targsize);
523c06f6a0SBen Lindstrom # endif /* !HAVE_B64_NTOP */
53ffda4cb2SDamien Miller # define __b64_ntop(a,b,c,d) b64_ntop(a,b,c,d)
543c06f6a0SBen Lindstrom #endif /* HAVE___B64_NTOP */
553c06f6a0SBen Lindstrom 
56fe1f1437SDamien Miller #ifndef HAVE___B64_PTON
57fe1f1437SDamien Miller # ifndef HAVE_B64_PTON
58fe1f1437SDamien Miller int b64_pton(char const *src, u_char *target, size_t targsize);
59fe1f1437SDamien Miller # endif /* !HAVE_B64_PTON */
60ffda4cb2SDamien Miller # define __b64_pton(a,b,c) b64_pton(a,b,c)
61fe1f1437SDamien Miller #endif /* HAVE___B64_PTON */
62fe1f1437SDamien Miller 
63a2b9607aSKevin Steves #endif /* _BSD_BASE64_H */
64