ports/net/libvncserver/files/patch-common_vncauth.c
Marcelo Araujo 3713417789 - Add few patches that fixes some usability such like md5 and sha1 when
we use the shared library with dlopen(3).
- Bump PORTREVISION.

Sponsored by:	iXsystems, Inc.
2017-07-05 08:04:36 +00:00

22 lines
477 B
C

--- common/vncauth.c.orig 2017-07-05 07:43:58 UTC
+++ common/vncauth.c
@@ -42,6 +42,10 @@
#include <sys/stat.h>
#endif
+#ifdef __FreeBSD__
+#include <fcntl.h>
+#endif
+
#include <time.h>
#ifdef WIN32
@@ -196,6 +200,8 @@ rfbEncryptBytes(unsigned char *bytes, char *passwd)
rfbDes(bytes+i, bytes+i);
}
}
+
+void rfbEncryptBytes2(unsigned char *, const int, unsigned char *);
void
rfbEncryptBytes2(unsigned char *where, const int length, unsigned char *key) {