00001 /* 00002 * Copyright (C) 2012 Christian Beier. 00003 * 00004 * This is free software; you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License as published by 00006 * the Free Software Foundation; either version 2 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * This software is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this software; if not, write to the Free Software 00016 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 00017 * USA. 00018 */ 00019 00020 #include <rfb/rfbclient.h> 00021 #include <errno.h> 00022 #include "tls.h" 00023 00024 rfbBool HandleAnonTLSAuth(rfbClient* client) 00025 { 00026 rfbClientLog("TLS is not supported.\n"); 00027 return FALSE; 00028 } 00029 00030 00031 rfbBool HandleVeNCryptAuth(rfbClient* client) 00032 { 00033 rfbClientLog("TLS is not supported.\n"); 00034 return FALSE; 00035 } 00036 00037 00038 int ReadFromTLS(rfbClient* client, char *out, unsigned int n) 00039 { 00040 rfbClientLog("TLS is not supported.\n"); 00041 errno = EINTR; 00042 return -1; 00043 } 00044 00045 00046 int WriteToTLS(rfbClient* client, char *buf, unsigned int n) 00047 { 00048 rfbClientLog("TLS is not supported.\n"); 00049 errno = EINTR; 00050 return -1; 00051 } 00052 00053 00054 void FreeTLS(rfbClient* client) 00055 { 00056 00057 } 00058