Set opcode correctly for binary frames.
[libvncserver.git] / libvncclient / tls_none.c
blob91a9f9329226837120a71ff05237e91932eec4ff
1 /*
2 * Copyright (C) 2012 Christian Beier.
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.
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.
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.
20 #include <rfb/rfbclient.h>
21 #include <errno.h>
22 #include "tls.h"
24 rfbBool HandleAnonTLSAuth(rfbClient* client)
26 rfbClientLog("TLS is not supported.\n");
27 return FALSE;
31 rfbBool HandleVeNCryptAuth(rfbClient* client)
33 rfbClientLog("TLS is not supported.\n");
34 return FALSE;
38 int ReadFromTLS(rfbClient* client, char *out, unsigned int n)
40 rfbClientLog("TLS is not supported.\n");
41 errno = EINTR;
42 return -1;
46 int WriteToTLS(rfbClient* client, char *buf, unsigned int n)
48 rfbClientLog("TLS is not supported.\n");
49 errno = EINTR;
50 return -1;
54 void FreeTLS(rfbClient* client)