base64.h revision 181097
14Srgrimes/* $Id: base64.h,v 1.6 2003/08/29 16:59:52 mouring Exp $ */ 24Srgrimes 34Srgrimes/* 44Srgrimes * Copyright (c) 1996 by Internet Software Consortium. 54Srgrimes * 64Srgrimes * Permission to use, copy, modify, and distribute this software for any 74Srgrimes * purpose with or without fee is hereby granted, provided that the above 84Srgrimes * copyright notice and this permission notice appear in all copies. 94Srgrimes * 104Srgrimes * THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS 114Srgrimes * ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES 124Srgrimes * OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE 134Srgrimes * CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL 144Srgrimes * DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR 154Srgrimes * PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS 164Srgrimes * ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS 174Srgrimes * SOFTWARE. 184Srgrimes */ 194Srgrimes 204Srgrimes/* 214Srgrimes * Portions Copyright (c) 1995 by International Business Machines, Inc. 224Srgrimes * 234Srgrimes * International Business Machines, Inc. (hereinafter called IBM) grants 244Srgrimes * permission under its copyrights to use, copy, modify, and distribute this 254Srgrimes * Software with or without fee, provided that the above copyright notice and 264Srgrimes * all paragraphs of this notice appear in all copies, and that the name of IBM 274Srgrimes * not be used in connection with the marketing of any product incorporating 284Srgrimes * the Software or modifications thereof, without specific, written prior 294Srgrimes * permission. 304Srgrimes * 314Srgrimes * To the extent it has a right to do so, IBM grants an immunity from suit 324Srgrimes * under its patents, if any, for the use, sale or manufacture of products to 334Srgrimes * the extent that such products are used for performing Domain Name System 344Srgrimes * dynamic updates in TCP/IP networks by means of the Software. No immunity is 354Srgrimes * granted for any product per se or for any other function of any product. 36556Srgrimes * 3750477Speter * THE SOFTWARE IS PROVIDED "AS IS", AND IBM DISCLAIMS ALL WARRANTIES, 3815392Sphk * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A 39757Sdg * PARTICULAR PURPOSE. IN NO EVENT SHALL IBM BE LIABLE FOR ANY SPECIAL, 40757Sdg * DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER ARISING 41757Sdg * OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE, EVEN 4215392Sphk * IF IBM IS APPRISED OF THE POSSIBILITY OF SUCH DAMAGES. 4315392Sphk */ 444Srgrimes 454Srgrimes#ifndef _BSD_BASE64_H 4632358Seivind#define _BSD_BASE64_H 4737272Sjmg 4814835Sbde#include "includes.h" 4914835Sbde 505908Sbde#ifndef HAVE___B64_NTOP 514Srgrimes# ifndef HAVE_B64_NTOP 5214835Sbdeint b64_ntop(u_char const *src, size_t srclength, char *target, 5314835Sbde size_t targsize); 5414835Sbde# endif /* !HAVE_B64_NTOP */ 5515543Sphk# define __b64_ntop(a,b,c,d) b64_ntop(a,b,c,d) 5614835Sbde#endif /* HAVE___B64_NTOP */ 5714835Sbde 5814835Sbde#ifndef HAVE___B64_PTON 5914835Sbde# ifndef HAVE_B64_PTON 6073017Speterint b64_pton(char const *src, u_char *target, size_t targsize); 6173017Speter# endif /* !HAVE_B64_PTON */ 6273017Speter# define __b64_pton(a,b,c) b64_pton(a,b,c) 6373017Speter#endif /* HAVE___B64_PTON */ 6473017Speter 6573017Speter#endif /* _BSD_BASE64_H */ 664Srgrimes