libosmocore 1.13.1.1-afb4 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
25 extern "C" {
26#endif
27
44 int osmo_base64_encode(unsigned char *dst, size_t dlen, size_t *olen,
45 const unsigned char *src, size_t slen);
46
64 int 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
osmo_base64_decode
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:122
osmo_base64_encode
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:55