From 3c05dd565e7c0253bcca437bf56ad41564c12650 Mon Sep 17 00:00:00 2001 From: Christian Beier Date: Fri, 29 Jun 2018 14:23:24 +0200 Subject: [PATCH] crypto: remove polarssl wrapper This is not even in the build system anymore. --- common/rfbcrypto_polarssl.c | 26 -------------------------- 1 file changed, 26 deletions(-) delete mode 100644 common/rfbcrypto_polarssl.c diff --git a/common/rfbcrypto_polarssl.c b/common/rfbcrypto_polarssl.c deleted file mode 100644 index 55e3a7b..0000000 --- a/common/rfbcrypto_polarssl.c +++ /dev/null @@ -1,26 +0,0 @@ -#include -#include -#include -#include "rfbcrypto.h" - -void digestmd5(const struct iovec *iov, int iovcnt, void *dest) -{ - md5_context c; - int i; - - md5_starts(&c); - for (i = 0; i < iovcnt; i++) - md5_update(&c, iov[i].iov_base, iov[i].iov_len); - md5_finish(&c, dest); -} - -void digestsha1(const struct iovec *iov, int iovcnt, void *dest) -{ - sha1_context c; - int i; - - sha1_starts(&c); - for (i = 0; i < iovcnt; i++) - sha1_update(&c, iov[i].iov_base, iov[i].iov_len); - sha1_finish(&c, dest); -}