summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristian Beier <dontmind@freeshell.org>2011-09-20 15:42:16 +0200
committerChristian Beier <dontmind@freeshell.org>2011-09-20 15:42:16 +0200
commitb1561e14a1e9ec5b246c0414fe1c26b15b0d17f4 (patch)
tree83872374473bdbee76ee72a8ab3895f2ed6de11e
parent419641f1f96b6ffab81de017d4556a0af83558a6 (diff)
parent170033a90707ef350232cfb245c110c8a6fa7340 (diff)
downloadlibtdevnc-b1561e14a1e9ec5b246c0414fe1c26b15b0d17f4.tar.gz
libtdevnc-b1561e14a1e9ec5b246c0414fe1c26b15b0d17f4.zip
Merge branch 'websockets' of https://github.com/kanaka/libvncserver into websockets
-rw-r--r--libvncserver/rfbcrypto_included.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libvncserver/rfbcrypto_included.c b/libvncserver/rfbcrypto_included.c
index e02b623..58c2e93 100644
--- a/libvncserver/rfbcrypto_included.c
+++ b/libvncserver/rfbcrypto_included.c
@@ -28,12 +28,12 @@
void digestmd5(const struct iovec *iov, int iovcnt, void *dest)
{
- md5_context c;
+ struct md5_ctx c;
int i;
__md5_init_ctx(&c);
for (i = 0; i < iovcnt; i++)
- __md5_process_bytes(&c, iov[i].iov_base, iov[i].iov_len);
+ __md5_process_bytes(iov[i].iov_base, iov[i].iov_len, &c);
__md5_finish_ctx(&c, dest);
}
@@ -41,7 +41,7 @@ void digestsha1(const struct iovec *iov, int iovcnt, void *dest)
{
SHA1Context c;
int i;
-
+
SHA1Reset(&c);
for (i = 0; i < iovcnt; i++)
SHA1Input(&c, iov[i].iov_base, iov[i].iov_len);