diff options
author | Jocelyn Le Sage <[email protected]> | 2017-02-21 06:36:15 -0500 |
---|---|---|
committer | Jocelyn Le Sage <[email protected]> | 2017-06-13 06:24:10 -0400 |
commit | e8a1ca20352f14bf3b527bb1f148610fc1fb5247 (patch) | |
tree | 40a87d260b041f2d8f7ed12e5b1bf2f4b9ecc62e /common/base64.h | |
parent | ada4b4fc5a27eb733c1eaad9d5bce42930e0f4ed (diff) | |
download | libtdevnc-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.h | 10 |
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 */ |