pam_pkcs11 0.6.12
base64.h
Go to the documentation of this file.
1/*
2 * BASE64 Encoding funtions
3 * Copyright (C) 2001, 2002 Juha Yrj\uffffl\uffff <juha.yrjola@iki.fi>
4 * Copyright (C) 2003-2004 Mario Strasser <mast@gmx.net>
5 * Copyright (C) 2005 Juan Antonio Martinez <jonsito@teleline.es>
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * $Id$
18 */
19
20#ifndef __BASE64_H_
21#define __BASE64_H_
22
23#ifndef __BASE64_C_
24#define BASE64_EXTERN extern
25#else
26#define BASE64_EXTERN
27#endif
28
37BASE64_EXTERN int base64_encode(const unsigned char *in, size_t len, unsigned char *out, size_t *outlen);
38
46BASE64_EXTERN int base64_decode(const char *in, unsigned char *out, size_t outlen);
47
48#undef BASE64_EXTERN
49
50#endif /* __BASE64_H_ */
#define BASE64_EXTERN
Definition base64.h:24
BASE64_EXTERN int base64_encode(const unsigned char *in, size_t len, unsigned char *out, size_t *outlen)
Encode byte array into a base64 string.
BASE64_EXTERN int base64_decode(const char *in, unsigned char *out, size_t outlen)
Decode a base64 string into a byte array.