summaryrefslogtreecommitdiffstats
path: root/rfb.h
diff options
context:
space:
mode:
authordscho <dscho>2001-09-25 11:58:24 +0000
committerdscho <dscho>2001-09-25 11:58:24 +0000
commit38cbc4b783f6935e2f2d0b2fa4395d9fe5c007a7 (patch)
tree747e31bfe49a23ae119cb7f834393d0901f03905 /rfb.h
parent7074bbff92ba73b4bf67192acc3d7492c12f72ed (diff)
downloadlibvncserver-38cbc4b783f6935e2f2d0b2fa4395d9fe5c007a7.zip
libvncserver-38cbc4b783f6935e2f2d0b2fa4395d9fe5c007a7.tar.gz
moved vncauth to libvncserver
Diffstat (limited to 'rfb.h')
-rw-r--r--rfb.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/rfb.h b/rfb.h
index 8f5a1c8..8c03a22 100644
--- a/rfb.h
+++ b/rfb.h
@@ -49,7 +49,6 @@ int max(int,int);
#include <zlib.h>
#include <rfbproto.h>
-#include <vncauth.h>
#include <netinet/in.h>
#ifdef HAVE_PTHREADS
#include <pthread.h>
@@ -224,6 +223,18 @@ typedef void (*rfbTranslateFnType)(char *table, rfbPixelFormat *in,
int width, int height);
+/*
+ * vncauth.h - describes the functions provided by the vncauth library.
+ */
+
+#define MAXPWLEN 8
+#define CHALLENGESIZE 16
+
+extern int vncEncryptAndStorePasswd(char *passwd, char *fname);
+extern char *vncDecryptPasswdFromFile(char *fname);
+extern void vncRandomBytes(unsigned char *bytes);
+extern void vncEncryptBytes(unsigned char *bytes, char *passwd);
+
/* region stuff */
typedef struct BoxRec {
OpenPOWER on IntegriCloud