pam_pkcs11
0.6.8
|
00001 /* 00002 * BASE64 Encoding funtions 00003 * Copyright (C) 2001, 2002 Juha Yrj\uffffl\uffff <juha.yrjola@iki.fi> 00004 * Copyright (C) 2003-2004 Mario Strasser <mast@gmx.net> 00005 * Copyright (C) 2005 Juan Antonio Martinez <jonsito@teleline.es> 00006 * 00007 * This library is free software; you can redistribute it and/or 00008 * modify it under the terms of the GNU Lesser General Public 00009 * License as published by the Free Software Foundation; either 00010 * version 2.1 of the License, or (at your option) any later version. 00011 * 00012 * This library is distributed in the hope that it will be useful, 00013 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00015 * Lesser General Public License for more details. 00016 * 00017 * $Id: base64.h 358 2008-11-06 14:28:46Z ludovic.rousseau $ 00018 */ 00019 00020 #ifndef __BASE64_H_ 00021 #define __BASE64_H_ 00022 00023 #ifndef __BASE64_C_ 00024 #define BASE64_EXTERN extern 00025 #else 00026 #define BASE64_EXTERN 00027 #endif 00028 00037 BASE64_EXTERN int base64_encode(const unsigned char *in, size_t len, unsigned char *out, size_t *outlen); 00038 00046 BASE64_EXTERN int base64_decode(const char *in, unsigned char *out, size_t outlen); 00047 00048 #undef BASE64_EXTERN 00049 00050 #endif /* __BASE64_H_ */