libosmocore  1.10.0.30-51bb.202411102026
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
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