diff options
Diffstat (limited to 'src/sock/sslsock.cpp')
| -rw-r--r-- | src/sock/sslsock.cpp | 34 |
1 files changed, 5 insertions, 29 deletions
diff --git a/src/sock/sslsock.cpp b/src/sock/sslsock.cpp index 494d572..32efc0f 100644 --- a/src/sock/sslsock.cpp +++ b/src/sock/sslsock.cpp @@ -1,27 +1,3 @@ -/*:* - *: File: ./src/sock/sslsock.cpp - *: - *: yChat; Homepage: www.yChat.org; Version 0.8.3-CURRENT - *: - *: Copyright (C) 2003 Paul C. Buetow, Volker Richter - *: Copyright (C) 2004 Paul C. Buetow - *: Copyright (C) 2005 EXA Digital Solutions GbR - *: - *: 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. - *:*/ - #include "../incl.h" #ifdef OPENSSL @@ -40,19 +16,19 @@ sslsock::sslsock() : sock() } int -sslsock::_send(_socket *p_sock, const char *sz, int len) +sslsock::_send(socketcontainer *p_sock, const char *sz, int len) { return SSL_write((SSL*)p_sock->p_ssl_context,sz, len); } int -sslsock::_read(_socket *p_sock, char *sz, int len) +sslsock::_read(socketcontainer *p_sock, char *sz, int len) { return SSL_read((SSL*)p_sock->p_ssl_context,sz,len); } int -sslsock::_close(_socket *p_sock) +sslsock::_close(socketcontainer *p_sock) { SSL_free((SSL*)p_sock->p_ssl_context); sock::_close(p_sock); @@ -153,10 +129,10 @@ sslsock::_main_loop_do_ssl_stuff(int& i_new_sock) return 0; } -_socket* +socketcontainer* sslsock::_create_container(int &i_sock) { - _socket* p_sock = sock::_create_container(i_sock); + socketcontainer* p_sock = sock::_create_container(i_sock); p_sock->p_ssl_context = map_certs[i_sock]; return p_sock; } |
