Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
libvncserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rasky
libvncserver
Commits
a1ce2ac4
Commit
a1ce2ac4
authored
Jul 27, 2003
by
dscho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
make vncauth usable also for upcoming libvncclient
parent
1e60fc20
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
60 additions
and
57 deletions
+60
-57
rfb.h
rfb/rfb.h
+0
-56
rfbproto.h
rfb/rfbproto.h
+58
-0
vncauth.c
vncauth.c
+2
-1
No files found.
rfb/rfb.h
View file @
a1ce2ac4
...
@@ -35,54 +35,12 @@ extern "C"
...
@@ -35,54 +35,12 @@ extern "C"
#include <stdio.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdlib.h>
#include <string.h>
#include <string.h>
#include <rfb/rfbconfig.h>
#undef VERSION
#include <rfb/rfbint.h>
#include <rfb/keysym.h>
#ifdef HAVE_LIBZ
#include <zlib.h>
#endif
#include <rfb/rfbproto.h>
#include <rfb/rfbproto.h>
#ifdef HAVE_SYS_TYPES_H
#ifdef HAVE_SYS_TYPES_H
#include <sys/types.h>
#include <sys/types.h>
#endif
#endif
#if defined(WIN32)
#define WORDS_BIGENDIAN
#undef Bool
#define Bool int
#include <sys/timeb.h>
#include <winsock.h>
#undef SOCKET
#define SOCKET int
#else
#define max(a,b) (((a)>(b))?(a):(b))
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#define SOCKET int
#ifndef Bool
typedef
int8_t
Bool
;
#undef FALSE
#define FALSE 0
#undef TRUE
#define TRUE -1
#endif
#endif
typedef
uint32_t
KeySym
;
typedef
uint32_t
Pixel
;
#ifndef INADDR_NONE
#define INADDR_NONE ((in_addr_t) 0xffffffff)
#endif
#ifdef HAVE_LIBPTHREAD
#ifdef HAVE_LIBPTHREAD
#include <pthread.h>
#include <pthread.h>
#if 0 /* debugging */
#if 0 /* debugging */
...
@@ -144,8 +102,6 @@ typedef uint32_t Pixel;
...
@@ -144,8 +102,6 @@ typedef uint32_t Pixel;
#endif
#endif
#endif
#endif
#define MAX_ENCODINGS 10
struct
_rfbClientRec
;
struct
_rfbClientRec
;
struct
_rfbScreenInfo
;
struct
_rfbScreenInfo
;
struct
rfbCursor
;
struct
rfbCursor
;
...
@@ -327,18 +283,6 @@ typedef void (*rfbTranslateFnType)(char *table, rfbPixelFormat *in,
...
@@ -327,18 +283,6 @@ typedef void (*rfbTranslateFnType)(char *table, rfbPixelFormat *in,
int
width
,
int
height
);
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 */
/* region stuff */
struct
sraRegion
;
struct
sraRegion
;
...
...
rfb/rfbproto.h
View file @
a1ce2ac4
...
@@ -47,6 +47,51 @@
...
@@ -47,6 +47,51 @@
*/
*/
#include <rfb/rfbconfig.h>
#undef VERSION
#include <rfb/rfbint.h>
#include <rfb/keysym.h>
#ifdef HAVE_LIBZ
#include <zlib.h>
#endif
#if defined(WIN32)
#define WORDS_BIGENDIAN
#undef Bool
#define Bool int
#include <sys/timeb.h>
#include <winsock.h>
#undef SOCKET
#define SOCKET int
#else
#define max(a,b) (((a)>(b))?(a):(b))
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#endif
#ifdef HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
#define SOCKET int
#ifndef Bool
typedef
int8_t
Bool
;
#undef FALSE
#define FALSE 0
#undef TRUE
#define TRUE -1
#endif
#endif
typedef
uint32_t
KeySym
;
typedef
uint32_t
Pixel
;
#ifndef INADDR_NONE
#define INADDR_NONE ((in_addr_t) 0xffffffff)
#endif
#define MAX_ENCODINGS 20
/*****************************************************************************
/*****************************************************************************
*
*
* Structures used in several messages
* Structures used in several messages
...
@@ -941,4 +986,17 @@ typedef union {
...
@@ -941,4 +986,17 @@ typedef union {
rfbClientCutTextMsg
cct
;
rfbClientCutTextMsg
cct
;
}
rfbClientToServerMsg
;
}
rfbClientToServerMsg
;
/*
* 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
);
#endif
#endif
vncauth.c
View file @
a1ce2ac4
...
@@ -21,7 +21,8 @@
...
@@ -21,7 +21,8 @@
* vncauth.c - Functions for VNC password management and authentication.
* vncauth.c - Functions for VNC password management and authentication.
*/
*/
#include "rfb.h"
#include <stdio.h>
#include <rfb/rfbproto.h>
#include "d3des.h"
#include "d3des.h"
#include <string.h>
#include <string.h>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment