1171169Smlaier/* $Id: base64.h,v 1.6 2003/08/29 16:59:52 mouring Exp $ */ 2171169Smlaier 3171169Smlaier/* 4171169Smlaier * Copyright (c) 1996 by Internet Software Consortium. 5171169Smlaier * 6171169Smlaier * Permission to use, copy, modify, and distribute this software for any 7171169Smlaier * purpose with or without fee is hereby granted, provided that the above 8171169Smlaier * copyright notice and this permission notice appear in all copies. 9171169Smlaier * 10171169Smlaier * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS 11171169Smlaier * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES 12171169Smlaier * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE 13171169Smlaier * CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL 14171169Smlaier * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR 15171169Smlaier * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS 16171169Smlaier * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 17171169Smlaier * SOFTWARE. 18171169Smlaier */ 19171169Smlaier 20171169Smlaier/* 21171169Smlaier * Portions Copyright (c) 1995 by International Business Machines, Inc. 22171169Smlaier * 23171169Smlaier * International Business Machines, Inc. (hereinafter called IBM) grants 24171169Smlaier * permission under its copyrights to use, copy, modify, and distribute this 25171169Smlaier * Software with or without fee, provided that the above copyright notice and 26171169Smlaier * all paragraphs of this notice appear in all copies, and that the name of IBM 27171169Smlaier * not be used in connection with the marketing of any product incorporating 28171169Smlaier * the Software or modifications thereof, without specific, written prior 29171169Smlaier * permission. 30171169Smlaier * 31171169Smlaier * To the extent it has a right to do so, IBM grants an immunity from suit 32171169Smlaier * under its patents, if any, for the use, sale or manufacture of products to 33171169Smlaier * the extent that such products are used for performing Domain Name System 34171169Smlaier * dynamic updates in TCP/IP networks by means of the Software. No immunity is 35171169Smlaier * granted for any product per se or for any other function of any product. 36171169Smlaier * 37171169Smlaier * THE SOFTWARE IS PROVIDED "AS IS", AND IBM DISCLAIMS ALL WARRANTIES, 38171169Smlaier * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 39171169Smlaier * PARTICULAR PURPOSE. IN NO EVENT SHALL IBM BE LIABLE FOR ANY SPECIAL, 40171169Smlaier * DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER ARISING 41171169Smlaier * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE, EVEN 42171169Smlaier * IF IBM IS APPRISED OF THE POSSIBILITY OF SUCH DAMAGES. 43171169Smlaier */ 44171169Smlaier 45171169Smlaier#ifndef _BSD_BASE64_H 46171169Smlaier#define _BSD_BASE64_H 47171169Smlaier 48171169Smlaier#include "includes.h" 49171169Smlaier 50171169Smlaier#ifndef HAVE___B64_NTOP 51171169Smlaier# ifndef HAVE_B64_NTOP 52171169Smlaierint b64_ntop(u_char const *src, size_t srclength, char *target, 53171169Smlaier size_t targsize); 54171169Smlaier# endif /* !HAVE_B64_NTOP */ 55171169Smlaier# define __b64_ntop(a,b,c,d) b64_ntop(a,b,c,d) 56171169Smlaier#endif /* HAVE___B64_NTOP */ 57171169Smlaier 58171169Smlaier#ifndef HAVE___B64_PTON 59171169Smlaier# ifndef HAVE_B64_PTON 60171169Smlaierint b64_pton(char const *src, u_char *target, size_t targsize); 61171169Smlaier# endif /* !HAVE_B64_PTON */ 62171169Smlaier# define __b64_pton(a,b,c) b64_pton(a,b,c) 63171169Smlaier#endif /* HAVE___B64_PTON */ 64171169Smlaier 65171169Smlaier#endif /* _BSD_BASE64_H */ 66171169Smlaier