From b543d48677082cf23b771a4e16ceccccc2f7d9e1 Mon Sep 17 00:00:00 2001 From: Gernot Tenchio Date: Tue, 16 Aug 2011 14:02:38 +0200 Subject: [PATCH] Move libvncserver/md5* to common Signed-off-by: Johannes Schindelin --- CMakeLists.txt | 2 +- {libvncserver => common}/md5.c | 4 ++++ {libvncserver => common}/md5.h | 0 libvncserver/Makefile.am | 2 +- 4 files changed, 6 insertions(+), 2 deletions(-) rename {libvncserver => common}/md5.c (98%) rename {libvncserver => common}/md5.h (100%) diff --git a/CMakeLists.txt b/CMakeLists.txt index c823ff2..bf56204 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -191,7 +191,7 @@ if(LIBVNCSERVER_WITH_WEBSOCKETS) ${LIBVNCSERVER_SOURCES} ${LIBVNCSERVER_DIR}/websockets.c ${LIBVNCSERVER_DIR}/${WSSRCS} - ${LIBVNCSERVER_DIR}/md5.c + ${COMMON_DIR}/md5.c ) endif(LIBVNCSERVER_WITH_WEBSOCKETS) diff --git a/libvncserver/md5.c b/common/md5.c similarity index 98% rename from libvncserver/md5.c rename to common/md5.c index a12c146..c1f3cf2 100644 --- a/libvncserver/md5.c +++ b/common/md5.c @@ -51,6 +51,10 @@ # define SWAP(n) (n) #endif +void +md5_process_bytes (const void *buffer, size_t len, struct md5_ctx *ctx); +void +md5_process_block (const void *buffer, size_t len, struct md5_ctx *ctx); /* This array contains the bytes used to pad the buffer to the next 64-byte boundary. (RFC 1321, 3.1: Step 1) */ diff --git a/libvncserver/md5.h b/common/md5.h similarity index 100% rename from libvncserver/md5.h rename to common/md5.h diff --git a/libvncserver/Makefile.am b/libvncserver/Makefile.am index a22d77f..a9feac1 100644 --- a/libvncserver/Makefile.am +++ b/libvncserver/Makefile.am @@ -24,7 +24,7 @@ WEBSOCKETSSSLSRCS = rfbssl_none.c #endif endif -WEBSOCKETSSRCS = websockets.c md5.c $(WEBSOCKETSSSLSRCS) +WEBSOCKETSSRCS = websockets.c ../common/md5.c $(WEBSOCKETSSSLSRCS) endif includedir=$(prefix)/include/rfb