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
81cda63c
Commit
81cda63c
authored
Feb 22, 2009
by
runge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix some compiler warnings.
parent
d400112c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
5 deletions
+13
-5
README
x11vnc/README
+1
-1
avahi.c
x11vnc/avahi.c
+7
-0
enc.h
x11vnc/enc.h
+4
-4
selection.c
x11vnc/selection.c
+1
-0
No files found.
x11vnc/README
View file @
81cda63c
x11vnc
README
file
Date
:
Sat
Feb
21
19
:
25
:
56
EST
2009
x11vnc
README
file
Date
:
Sat
Feb
21
21
:
51
:
04
EST
2009
The
following
information
is
taken
from
these
URLs
:
...
...
x11vnc/avahi.c
View file @
81cda63c
...
...
@@ -2,6 +2,7 @@
#include "x11vnc.h"
#include "connections.h"
#include "cleanup.h"
void
avahi_initialise
(
void
);
void
avahi_advertise
(
const
char
*
name
,
const
char
*
host
,
const
uint16_t
port
);
...
...
@@ -136,6 +137,10 @@ void avahi_cleanup(void) {
#include <avahi-client/client.h>
#include <avahi-client/publish.h>
#include <avahi-common/malloc.h>
#include <avahi-common/error.h>
static
AvahiThreadedPoll
*
_poll
=
NULL
;
static
AvahiClient
*
_client
=
NULL
;
static
AvahiEntryGroup
*
_group
=
NULL
;
...
...
@@ -242,6 +247,8 @@ if (db) fprintf(stderr, "in _avahi_entry_group_callback %d 0x%p\n", state, svc)
avahi_strerror
(
avahi_client_errno
(
avahi_entry_group_get_client
(
g
))));
break
;
default:
break
;
}
if
(
db
)
fprintf
(
stderr
,
"out _avahi_entry_group_callback
\n
"
);
}
...
...
x11vnc/enc.h
View file @
81cda63c
...
...
@@ -591,7 +591,7 @@ static void enc_xfer(int sock_fr, int sock_to, int encrypt) {
EVP_CIPHER_CTX_init
(
ctx
);
if
(
pw_in
)
{
/* for pw=xxxx a md5 hash is used */
EVP_BytesToKey
(
Cipher
,
Digest
,
NULL
,
keydata
,
EVP_BytesToKey
(
Cipher
,
Digest
,
NULL
,
(
unsigned
char
*
)
keydata
,
keydata_len
,
1
,
keystr
,
NULL
);
EVP_CipherInit_ex
(
ctx
,
Cipher
,
NULL
,
keystr
,
NULL
,
encrypt
);
...
...
@@ -603,7 +603,7 @@ static void enc_xfer(int sock_fr, int sock_to, int encrypt) {
}
else
{
/* XXX might not be correct */
exit
(
1
);
EVP_BytesToKey
(
Cipher
,
Digest
,
NULL
,
keydata
,
EVP_BytesToKey
(
Cipher
,
Digest
,
NULL
,
(
unsigned
char
*
)
keydata
,
keydata_len
,
1
,
keystr
,
ivec
);
EVP_CIPHER_CTX_init
(
ctx
);
EVP_CipherInit_ex
(
ctx
,
Cipher
,
NULL
,
keystr
,
ivec
,
...
...
@@ -646,7 +646,7 @@ static void enc_xfer(int sock_fr, int sock_to, int encrypt) {
}
else
if
(
noultra
&&
ivec_size
>
0
)
{
/* "normal" mode, don't overwrite ivec. */
EVP_BytesToKey
(
Cipher
,
Digest
,
in_salt
,
keydata
,
EVP_BytesToKey
(
Cipher
,
Digest
,
in_salt
,
(
unsigned
char
*
)
keydata
,
keydata_len
,
1
,
keystr
,
NULL
);
}
else
{
...
...
@@ -655,7 +655,7 @@ static void enc_xfer(int sock_fr, int sock_to, int encrypt) {
* clobbers the ivec we set up above! Under
* noultra we overwrite ivec only if ivec_size=0.
*/
EVP_BytesToKey
(
Cipher
,
Digest
,
in_salt
,
keydata
,
EVP_BytesToKey
(
Cipher
,
Digest
,
in_salt
,
(
unsigned
char
*
)
keydata
,
keydata_len
,
1
,
keystr
,
ivec
);
}
...
...
x11vnc/selection.c
View file @
81cda63c
...
...
@@ -4,6 +4,7 @@
#include "cleanup.h"
#include "connections.h"
#include "unixpw.h"
#include "win_utils.h"
#include "xwrappers.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