/* -*- c-basic-offset: 8 -*- FreeRDP: A Remote Desktop Protocol client. Transport Layer Security (TLS) encryption Copyright (C) Marc-Andre Moreau 2010 This program 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 program 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 program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #ifndef __TLS_H #define __TLS_H #include "tcp.h" #include #include #include #include #include #include #include SSL_CTX* tls_create_context(); void tls_destroy_context(SSL_CTX *ctx); SSL* tls_connect(SSL_CTX *ctx, int sockfd, char *server); void tls_disconnect(SSL *ssl); int tls_write(SSL *ssl, char* b, int length); int tls_read(SSL *ssl, char* b, int length); #endif // __TLS_H