1/* 2 * This program is free software; you can redistribute it and/or 3 * modify it under the terms of the GNU General Public License as 4 * published by the Free Software Foundation; either version 2 of 5 * the License, or (at your option) any later version. 6 * 7 * This program is distributed in the hope that it will be useful, 8 * but WITHOUT ANY WARRANTY; without even the implied warranty of 9 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 * GNU General Public License for more details. 11 * 12 * You should have received a copy of the GNU General Public License 13 * along with this program; if not, write to the Free Software 14 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, 15 * MA 02111-1307 USA 16 */ 17#ifndef VSF_SSL_H 18#define VSF_SSL_H 19 20struct vsf_session; 21struct mystr; 22 23void ssl_getline(const struct vsf_session* p_sess, struct mystr* p_str, 24 char end_char, char* p_buf, unsigned int buflen); 25int ssl_read(void* p_ssl, char* p_buf, unsigned int len); 26int ssl_write(void* p_ssl, const char* p_buf, unsigned int len); 27int ssl_write_str(void* p_ssl, const struct mystr* p_str); 28void ssl_init(struct vsf_session* p_sess); 29int ssl_accept(struct vsf_session* p_sess, int fd); 30void ssl_data_close(struct vsf_session* p_sess); 31void ssl_comm_channel_init(struct vsf_session* p_sess); 32void handle_auth(struct vsf_session* p_sess); 33void handle_pbsz(struct vsf_session* p_sess); 34void handle_prot(struct vsf_session* p_sess); 35 36#endif /* VSF_SSL_H */ 37 38