diff options
author | Christian Beier <dontmind@freeshell.org> | 2012-04-14 21:16:09 +0200 |
---|---|---|
committer | Christian Beier <dontmind@freeshell.org> | 2012-04-14 21:16:09 +0200 |
commit | 5e9da5a2f8317b58fd825bfd8f8083345ba59719 (patch) | |
tree | 914eaa8676122e0ad62e7a169b74fa0489b25ef2 /libvncclient/tls_none.c | |
parent | 98f4037785246f77e544bab9196f076fe310be16 (diff) | |
download | libtdevnc-5e9da5a2f8317b58fd825bfd8f8083345ba59719.tar.gz libtdevnc-5e9da5a2f8317b58fd825bfd8f8083345ba59719.zip |
Add the OpenSSL libvncclient TLS version to the build system.
Diffstat (limited to 'libvncclient/tls_none.c')
-rw-r--r-- | libvncclient/tls_none.c | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/libvncclient/tls_none.c b/libvncclient/tls_none.c new file mode 100644 index 0000000..6147896 --- /dev/null +++ b/libvncclient/tls_none.c @@ -0,0 +1,56 @@ +/* + * Copyright (C) 2012 Christian Beier. + * + * This is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This software is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this software; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, + * USA. + */ + +#include "tls.h" + +rfbBool HandleAnonTLSAuth(rfbClient* client) +{ + rfbClientLog("TLS is not supported.\n"); + return FALSE; +} + + +rfbBool HandleVeNCryptAuth(rfbClient* client) +{ + rfbClientLog("TLS is not supported.\n"); + return FALSE; +} + + +int ReadFromTLS(rfbClient* client, char *out, unsigned int n) +{ + rfbClientLog("TLS is not supported.\n"); + errno = EINTR; + return -1; +} + + +int WriteToTLS(rfbClient* client, char *buf, unsigned int n) +{ + rfbClientLog("TLS is not supported.\n"); + errno = EINTR; + return -1; +} + + +void FreeTLS(rfbClient* client) +{ + +} + |