summaryrefslogtreecommitdiff
path: root/openbsd-compat/base64.h
diff options
context:
space:
mode:
Diffstat (limited to 'openbsd-compat/base64.h')
-rw-r--r--openbsd-compat/base64.h50
1 files changed, 4 insertions, 46 deletions
diff --git a/openbsd-compat/base64.h b/openbsd-compat/base64.h
index 732c6b3f8..72db3ffc7 100644
--- a/openbsd-compat/base64.h
+++ b/openbsd-compat/base64.h
@@ -1,65 +1,23 @@
1/* $Id: base64.h,v 1.6 2003/08/29 16:59:52 mouring Exp $ */ 1/* $Id: base64.h,v 1.4 2003/02/24 04:45:43 djm Exp $ */
2
3/*
4 * Copyright (c) 1996 by Internet Software Consortium.
5 *
6 * Permission to use, copy, modify, and distribute this software for any
7 * purpose with or without fee is hereby granted, provided that the above
8 * copyright notice and this permission notice appear in all copies.
9 *
10 * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
11 * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
12 * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
13 * CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
14 * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
15 * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
16 * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
17 * SOFTWARE.
18 */
19
20/*
21 * Portions Copyright (c) 1995 by International Business Machines, Inc.
22 *
23 * International Business Machines, Inc. (hereinafter called IBM) grants
24 * permission under its copyrights to use, copy, modify, and distribute this
25 * Software with or without fee, provided that the above copyright notice and
26 * all paragraphs of this notice appear in all copies, and that the name of IBM
27 * not be used in connection with the marketing of any product incorporating
28 * the Software or modifications thereof, without specific, written prior
29 * permission.
30 *
31 * To the extent it has a right to do so, IBM grants an immunity from suit
32 * under its patents, if any, for the use, sale or manufacture of products to
33 * the extent that such products are used for performing Domain Name System
34 * dynamic updates in TCP/IP networks by means of the Software. No immunity is
35 * granted for any product per se or for any other function of any product.
36 *
37 * THE SOFTWARE IS PROVIDED "AS IS", AND IBM DISCLAIMS ALL WARRANTIES,
38 * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
39 * PARTICULAR PURPOSE. IN NO EVENT SHALL IBM BE LIABLE FOR ANY SPECIAL,
40 * DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER ARISING
41 * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE, EVEN
42 * IF IBM IS APPRISED OF THE POSSIBILITY OF SUCH DAMAGES.
43 */
44 2
45#ifndef _BSD_BASE64_H 3#ifndef _BSD_BASE64_H
46#define _BSD_BASE64_H 4#define _BSD_BASE64_H
47 5
48#include "includes.h" 6#include "config.h"
49 7
50#ifndef HAVE___B64_NTOP 8#ifndef HAVE___B64_NTOP
51# ifndef HAVE_B64_NTOP 9# ifndef HAVE_B64_NTOP
52int b64_ntop(u_char const *src, size_t srclength, char *target, 10int b64_ntop(u_char const *src, size_t srclength, char *target,
53 size_t targsize); 11 size_t targsize);
54# endif /* !HAVE_B64_NTOP */ 12# endif /* !HAVE_B64_NTOP */
55# define __b64_ntop(a,b,c,d) b64_ntop(a,b,c,d) 13# define __b64_ntop b64_ntop
56#endif /* HAVE___B64_NTOP */ 14#endif /* HAVE___B64_NTOP */
57 15
58#ifndef HAVE___B64_PTON 16#ifndef HAVE___B64_PTON
59# ifndef HAVE_B64_PTON 17# ifndef HAVE_B64_PTON
60int b64_pton(char const *src, u_char *target, size_t targsize); 18int b64_pton(char const *src, u_char *target, size_t targsize);
61# endif /* !HAVE_B64_PTON */ 19# endif /* !HAVE_B64_PTON */
62# define __b64_pton(a,b,c) b64_pton(a,b,c) 20# define __b64_pton b64_pton
63#endif /* HAVE___B64_PTON */ 21#endif /* HAVE___B64_PTON */
64 22
65#endif /* _BSD_BASE64_H */ 23#endif /* _BSD_BASE64_H */