aboutsummaryrefslogtreecommitdiffstats
path: root/wsutil/base64.h
blob: a58951ad0dc444d33fdb671062ffa76f17a37b58 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/* base64.h
 * Base-64 conversion
 *
 * Wireshark - Network traffic analyzer
 * By Gerald Combs <gerald@wireshark.org>
 * Copyright 1998 Gerald Combs
 *
 * SPDX-License-Identifier: GPL-2.0+
 */
#ifndef __BASE64_H__
#define __BASE64_H__

#include "ws_symbol_export.h"

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

/* In-place decoding of a base64 string. Resulting string is NULL terminated */
WS_DLL_PUBLIC
size_t ws_base64_decode_inplace(char *s);

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* __BASE64_H__ */