libosmocore  1.6.0
Osmocom core library
base64.h
Go to the documentation of this file.
1 
24 #pragma once
25 
26 #include <stddef.h>
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
48 int osmo_base64_encode(unsigned char *dst, size_t dlen, size_t *olen,
49  const unsigned char *src, size_t slen);
50 
68 int osmo_base64_decode(unsigned char *dst, size_t dlen, size_t *olen,
69  const unsigned char *src, size_t slen);
70 
71 #ifdef __cplusplus
72 }
73 #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:125
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:58