summaryrefslogtreecommitdiffstats
path: root/common/base64.h
diff options
context:
space:
mode:
authorJocelyn Le Sage <jocelyn@le-sage.com>2017-02-21 06:36:15 -0500
committerJocelyn Le Sage <jocelyn.lesage@hpe.com>2017-06-13 06:24:10 -0400
commite8a1ca20352f14bf3b527bb1f148610fc1fb5247 (patch)
tree40a87d260b041f2d8f7ed12e5b1bf2f4b9ecc62e /common/base64.h
parentada4b4fc5a27eb733c1eaad9d5bce42930e0f4ed (diff)
downloadlibtdevnc-e8a1ca20352f14bf3b527bb1f148610fc1fb5247.tar.gz
libtdevnc-e8a1ca20352f14bf3b527bb1f148610fc1fb5247.zip
Fixed compilation of websockets on system where there is no implementation of base64 functions.
Diffstat (limited to 'common/base64.h')
-rw-r--r--common/base64.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/common/base64.h b/common/base64.h
new file mode 100644
index 0000000..9b86fc1
--- /dev/null
+++ b/common/base64.h
@@ -0,0 +1,10 @@
+#ifndef _BASE64_H
+#define _BASE64_H
+
+extern int __b64_ntop(u_char const *src, size_t srclength, char *target, size_t targsize);
+extern int __b64_pton(char const *src, u_char *target, size_t targsize);
+
+#define rfbBase64NtoP __b64_ntop
+#define rfbBase64PtoN __b64_pton
+
+#endif /* _BASE64_H */