summaryrefslogtreecommitdiffstats
path: root/libvncclient/vncviewer.c
diff options
context:
space:
mode:
authorJohannes Schindelin <johannes.schindelin@gmx.de>2009-11-02 16:13:26 +0100
committerJohannes Schindelin <johannes.schindelin@gmx.de>2009-11-02 16:13:26 +0100
commitf49a292783407c14869d811c05c2bbd009af27f7 (patch)
tree5cf5e9544f6762bb67e94e195b882120a40bcf3f /libvncclient/vncviewer.c
parent67223b7c4d3411dbc5a311c7b66770f2ac9b7b83 (diff)
parent29990f0090754c722653aafd3fc6800cebc1584c (diff)
downloadlibvncserver-f49a292783407c14869d811c05c2bbd009af27f7.zip
libvncserver-f49a292783407c14869d811c05c2bbd009af27f7.tar.gz
Merge branch 'VeNCrypt'
Diffstat (limited to 'libvncclient/vncviewer.c')
-rw-r--r--libvncclient/vncviewer.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/libvncclient/vncviewer.c b/libvncclient/vncviewer.c
index f29bd5f..3ad8a27 100644
--- a/libvncclient/vncviewer.c
+++ b/libvncclient/vncviewer.c
@@ -30,6 +30,7 @@
#include <string.h>
#include <time.h>
#include <rfb/rfbclient.h>
+#include "tls.h"
static void Dummy(rfbClient* client) {
}
@@ -181,6 +182,13 @@ rfbClient* rfbGetClient(int bitsPerSample,int samplesPerPixel,
client->CurrentKeyboardLedState = 0;
client->HandleKeyboardLedState = (HandleKeyboardLedStateProc)DummyPoint;
+ client->authScheme = 0;
+ client->subAuthScheme = 0;
+ client->GetCredential = NULL;
+#ifdef LIBVNCSERVER_WITH_CLIENT_TLS
+ client->tlsSession = NULL;
+#endif
+
return client;
}
@@ -323,6 +331,7 @@ void rfbClientCleanup(rfbClient* client) {
#endif
#endif
+ FreeTLS(client);
if (client->sock > 0)
close(client->sock);
free(client->desktopName);
OpenPOWER on IntegriCloud