libosmocore 1.9.0.196-9975
Osmocom core library
base64.h
Go to the documentation of this file.
1
20#pragma once
21
22#include <stddef.h>
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
44int osmo_base64_encode(unsigned char *dst, size_t dlen, size_t *olen,
45 const unsigned char *src, size_t slen);
46
64int osmo_base64_decode(unsigned char *dst, size_t dlen, size_t *olen,
65 const unsigned char *src, size_t slen);
66
67#ifdef __cplusplus
68}
69#endif
int osmo_base64_decode(unsigned char *dst, size_t dlen, size_t *olen, const unsigned char *src, size_t slen)
Decode a base64-formatted buffer.
Definition: base64.c:121
int osmo_base64_encode(unsigned char *dst, size_t dlen, size_t *olen, const unsigned char *src, size_t slen)
Encode a buffer into base64 format.
Definition: base64.c:54