Ben Lindstrom | 515d0f9 | 2003-08-29 16:59:52 +0000 | [diff] [blame] | 1 | /* |
| 2 | * Copyright (c) 1996 by Internet Software Consortium. |
| 3 | * |
| 4 | * Permission to use, copy, modify, and distribute this software for any |
| 5 | * purpose with or without fee is hereby granted, provided that the above |
| 6 | * copyright notice and this permission notice appear in all copies. |
| 7 | * |
| 8 | * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS |
| 9 | * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES |
| 10 | * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE |
| 11 | * CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL |
| 12 | * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR |
| 13 | * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS |
| 14 | * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS |
| 15 | * SOFTWARE. |
| 16 | */ |
| 17 | |
| 18 | /* |
| 19 | * Portions Copyright (c) 1995 by International Business Machines, Inc. |
| 20 | * |
| 21 | * International Business Machines, Inc. (hereinafter called IBM) grants |
| 22 | * permission under its copyrights to use, copy, modify, and distribute this |
| 23 | * Software with or without fee, provided that the above copyright notice and |
| 24 | * all paragraphs of this notice appear in all copies, and that the name of IBM |
| 25 | * not be used in connection with the marketing of any product incorporating |
| 26 | * the Software or modifications thereof, without specific, written prior |
| 27 | * permission. |
| 28 | * |
| 29 | * To the extent it has a right to do so, IBM grants an immunity from suit |
| 30 | * under its patents, if any, for the use, sale or manufacture of products to |
| 31 | * the extent that such products are used for performing Domain Name System |
| 32 | * dynamic updates in TCP/IP networks by means of the Software. No immunity is |
| 33 | * granted for any product per se or for any other function of any product. |
| 34 | * |
| 35 | * THE SOFTWARE IS PROVIDED "AS IS", AND IBM DISCLAIMS ALL WARRANTIES, |
| 36 | * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A |
| 37 | * PARTICULAR PURPOSE. IN NO EVENT SHALL IBM BE LIABLE FOR ANY SPECIAL, |
| 38 | * DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER ARISING |
| 39 | * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE, EVEN |
| 40 | * IF IBM IS APPRISED OF THE POSSIBILITY OF SUCH DAMAGES. |
| 41 | */ |
Damien Miller | e9cf357 | 2001-02-09 12:55:35 +1100 | [diff] [blame] | 42 | |
Damien Miller | e247cc4 | 2000-05-07 12:03:14 +1000 | [diff] [blame] | 43 | #ifndef _BSD_BASE64_H |
| 44 | #define _BSD_BASE64_H |
| 45 | |
Ben Lindstrom | 515d0f9 | 2003-08-29 16:59:52 +0000 | [diff] [blame] | 46 | #include "includes.h" |
Damien Miller | e247cc4 | 2000-05-07 12:03:14 +1000 | [diff] [blame] | 47 | |
| 48 | #ifndef HAVE___B64_NTOP |
Damien Miller | 75edac3 | 2000-05-09 15:28:41 +1000 | [diff] [blame] | 49 | # ifndef HAVE_B64_NTOP |
Darren Tucker | c20dccb | 2016-08-02 09:44:25 +1000 | [diff] [blame] | 50 | int b64_ntop(u_char const *src, size_t srclength, char *target, |
Damien Miller | e247cc4 | 2000-05-07 12:03:14 +1000 | [diff] [blame] | 51 | size_t targsize); |
Damien Miller | 75edac3 | 2000-05-09 15:28:41 +1000 | [diff] [blame] | 52 | # endif /* !HAVE_B64_NTOP */ |
Damien Miller | ffda4cb | 2003-05-15 13:57:51 +1000 | [diff] [blame] | 53 | # define __b64_ntop(a,b,c,d) b64_ntop(a,b,c,d) |
Damien Miller | e247cc4 | 2000-05-07 12:03:14 +1000 | [diff] [blame] | 54 | #endif /* HAVE___B64_NTOP */ |
| 55 | |
Damien Miller | fe1f143 | 2003-02-24 15:45:42 +1100 | [diff] [blame] | 56 | #ifndef HAVE___B64_PTON |
| 57 | # ifndef HAVE_B64_PTON |
| 58 | int b64_pton(char const *src, u_char *target, size_t targsize); |
| 59 | # endif /* !HAVE_B64_PTON */ |
Damien Miller | ffda4cb | 2003-05-15 13:57:51 +1000 | [diff] [blame] | 60 | # define __b64_pton(a,b,c) b64_pton(a,b,c) |
Damien Miller | fe1f143 | 2003-02-24 15:45:42 +1100 | [diff] [blame] | 61 | #endif /* HAVE___B64_PTON */ |
| 62 | |
Kevin Steves | a2b9607 | 2002-02-26 16:59:58 +0000 | [diff] [blame] | 63 | #endif /* _BSD_BASE64_H */ |