• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  *  Copyright (C) 2012 Christian Beier.
3  *
4  *  This is free software; you can redistribute it and/or modify
5  *  it under the terms of the GNU General Public License as published by
6  *  the Free Software Foundation; either version 2 of the License, or
7  *  (at your option) any later version.
8  *
9  *  This software is distributed in the hope that it will be useful,
10  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  *  GNU General Public License for more details.
13  *
14  *  You should have received a copy of the GNU General Public License
15  *  along with this software; if not, write to the Free Software
16  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,
17  *  USA.
18  */
19 
20 #include <rfb/rfbclient.h>
21 #include <errno.h>
22 #include "tls.h"
23 
HandleAnonTLSAuth(rfbClient * client)24 rfbBool HandleAnonTLSAuth(rfbClient* client)
25 {
26   rfbClientLog("TLS is not supported.\n");
27   return FALSE;
28 }
29 
30 
HandleVeNCryptAuth(rfbClient * client)31 rfbBool HandleVeNCryptAuth(rfbClient* client)
32 {
33   rfbClientLog("TLS is not supported.\n");
34   return FALSE;
35 }
36 
37 
ReadFromTLS(rfbClient * client,char * out,unsigned int n)38 int ReadFromTLS(rfbClient* client, char *out, unsigned int n)
39 {
40   rfbClientLog("TLS is not supported.\n");
41   errno = EINTR;
42   return -1;
43 }
44 
45 
WriteToTLS(rfbClient * client,char * buf,unsigned int n)46 int WriteToTLS(rfbClient* client, char *buf, unsigned int n)
47 {
48   rfbClientLog("TLS is not supported.\n");
49   errno = EINTR;
50   return -1;
51 }
52 
53 
FreeTLS(rfbClient * client)54 void FreeTLS(rfbClient* client)
55 {
56 
57 }
58 
59