summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGernot Tenchio <gernot.tenchio@securepoint.de>2011-08-16 14:02:38 +0200
committerJohannes Schindelin <johannes.schindelin@gmx.de>2011-08-17 12:46:30 +0200
commitb543d48677082cf23b771a4e16ceccccc2f7d9e1 (patch)
tree55c13aa7fbae2a65ecd633c2f2fb7f6f0db7854e
parentc2fb69f84d3243e7068754436f8b5edbacc837ad (diff)
downloadlibvncserver-b543d48677082cf23b771a4e16ceccccc2f7d9e1.zip
libvncserver-b543d48677082cf23b771a4e16ceccccc2f7d9e1.tar.gz
Move libvncserver/md5* to common
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
-rw-r--r--CMakeLists.txt2
-rw-r--r--common/md5.c (renamed from libvncserver/md5.c)4
-rw-r--r--common/md5.h (renamed from libvncserver/md5.h)0
-rw-r--r--libvncserver/Makefile.am2
4 files changed, 6 insertions, 2 deletions
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
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
index b48545b..b48545b 100644
--- a/libvncserver/md5.h
+++ b/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
OpenPOWER on IntegriCloud