diff options
Diffstat (limited to 'rfb.h')
-rw-r--r-- | rfb.h | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -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 { |