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
19aa466a
Commit
19aa466a
authored
Mar 13, 2010
by
Johannes Schindelin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compilation without TLS
Signed-off-by:
Johannes Schindelin
<
johannes.schindelin@gmx.de
>
parent
14854d2e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
rfbproto.c
libvncclient/rfbproto.c
+10
-1
vncviewer.c
libvncclient/vncviewer.c
+2
-0
No files found.
libvncclient/rfbproto.c
View file @
19aa466a
...
@@ -915,6 +915,10 @@ InitialiseRFBConnection(rfbClient* client)
...
@@ -915,6 +915,10 @@ InitialiseRFBConnection(rfbClient* client)
break
;
break
;
case
rfbTLS
:
case
rfbTLS
:
#ifndef LIBVNCSERVER_WITH_CLIENT_TLS
rfbClientLog
(
"TLS support was not compiled in
\n
"
);
return
FALSE
;
#else
if
(
!
HandleAnonTLSAuth
(
client
))
return
FALSE
;
if
(
!
HandleAnonTLSAuth
(
client
))
return
FALSE
;
/* After the TLS session is established, sub auth types are expected.
/* After the TLS session is established, sub auth types are expected.
* Note that all following reading/writing are through the TLS session from here.
* Note that all following reading/writing are through the TLS session from here.
...
@@ -944,10 +948,15 @@ InitialiseRFBConnection(rfbClient* client)
...
@@ -944,10 +948,15 @@ InitialiseRFBConnection(rfbClient* client)
(
int
)
subAuthScheme
);
(
int
)
subAuthScheme
);
return
FALSE
;
return
FALSE
;
}
}
#endif
break
;
break
;
case
rfbVeNCrypt
:
case
rfbVeNCrypt
:
#ifndef LIBVNCSERVER_WITH_CLIENT_TLS
rfbClientLog
(
"TLS support was not compiled in
\n
"
);
return
FALSE
;
#else
if
(
!
HandleVeNCryptAuth
(
client
))
return
FALSE
;
if
(
!
HandleVeNCryptAuth
(
client
))
return
FALSE
;
switch
(
client
->
subAuthScheme
)
{
switch
(
client
->
subAuthScheme
)
{
...
@@ -973,7 +982,7 @@ InitialiseRFBConnection(rfbClient* client)
...
@@ -973,7 +982,7 @@ InitialiseRFBConnection(rfbClient* client)
client
->
subAuthScheme
);
client
->
subAuthScheme
);
return
FALSE
;
return
FALSE
;
}
}
#endif
break
;
break
;
default:
default:
...
...
libvncclient/vncviewer.c
View file @
19aa466a
...
@@ -358,7 +358,9 @@ void rfbClientCleanup(rfbClient* client) {
...
@@ -358,7 +358,9 @@ void rfbClientCleanup(rfbClient* client) {
#endif
#endif
#endif
#endif
#ifdef LIBVNCSERVER_WITH_CLIENT_TLS
FreeTLS
(
client
);
FreeTLS
(
client
);
#endif
if
(
client
->
sock
>=
0
)
if
(
client
->
sock
>=
0
)
close
(
client
->
sock
);
close
(
client
->
sock
);
if
(
client
->
listenSock
>=
0
)
if
(
client
->
listenSock
>=
0
)
...
...
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