2008-02-28 02:34:43 +01:00
|
|
|
/*
|
|
|
|
* Base64 encoding/decoding (RFC1341)
|
|
|
|
* Copyright (c) 2005, Jouni Malinen <j@w1.fi>
|
|
|
|
*
|
2012-02-11 15:46:35 +01:00
|
|
|
* This software may be distributed under the terms of the BSD license.
|
|
|
|
* See README for more details.
|
2008-02-28 02:34:43 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef BASE64_H
|
2011-02-21 21:44:46 +01:00
|
|
|
#define BASE64_H
|
2008-02-28 02:34:43 +01:00
|
|
|
|
2019-11-27 14:55:33 +01:00
|
|
|
char * base64_encode(const void *src, size_t len, size_t *out_len);
|
|
|
|
unsigned char * base64_decode(const char *src, size_t len, size_t *out_len);
|
2019-11-27 14:30:53 +01:00
|
|
|
char * base64_url_encode(const void *src, size_t len, size_t *out_len);
|
|
|
|
unsigned char * base64_url_decode(const char *src, size_t len, size_t *out_len);
|
2008-02-28 02:34:43 +01:00
|
|
|
|
|
|
|
#endif /* BASE64_H */
|