diff options
author | Gernot Tenchio <gernot@tenchio.de> | 2011-09-18 21:20:53 +0200 |
---|---|---|
committer | Gernot Tenchio <gernot@tenchio.de> | 2011-09-19 22:16:38 +0200 |
commit | bd9cae3d122bc602e5a3d2638c0bb9435f8fc47c (patch) | |
tree | 0ae9effe5bac988008aea546951001b6652725eb /libvncserver/rfbcrypto.h | |
parent | cb0340ccc5351a2ab31ad03b2dc13334ba349d71 (diff) | |
download | libtdevnc-bd9cae3d122bc602e5a3d2638c0bb9435f8fc47c.tar.gz libtdevnc-bd9cae3d122bc602e5a3d2638c0bb9435f8fc47c.zip |
Add support for different crypto implementations
Diffstat (limited to 'libvncserver/rfbcrypto.h')
-rw-r--r-- | libvncserver/rfbcrypto.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/libvncserver/rfbcrypto.h b/libvncserver/rfbcrypto.h new file mode 100644 index 0000000..9dc3e63 --- /dev/null +++ b/libvncserver/rfbcrypto.h @@ -0,0 +1,12 @@ +#ifndef _RFB_CRYPTO_H +#define _RFB_CRYPTO_H 1 + +#include <sys/uio.h> + +#define SHA1_HASH_SIZE 20 +#define MD5_HASH_SIZE 16 + +void digestmd5(const struct iovec *iov, int iovcnt, void *dest); +void digestsha1(const struct iovec *iov, int iovcnt, void *dest); + +#endif |