a7eaf1cabac0a9ce2c5c2c6de2c9bc315accfef4
[project/uclient.git] / uclient-utils.h
1 #ifndef __UCLIENT_UTILS_H
2 #define __UCLIENT_UTILS_H
3
4 #include <stdbool.h>
5
6 static inline int base64_len(int len)
7 {
8         return ((len + 2) / 3) * 4;
9 }
10
11 void base64_encode(const void *inbuf, unsigned int len, void *out);
12
13 int uclient_urldecode(const char *in, char *out, bool decode_plus);
14
15
16 #endif