1 #ifndef VSF_SSL_H 2 #define VSF_SSL_H 3 4 struct vsf_session; 5 struct mystr; 6 7 int ssl_read(struct vsf_session* p_sess, 8 void* p_ssl, 9 char* p_buf, 10 unsigned int len); 11 int ssl_peek(struct vsf_session* p_sess, 12 void* p_ssl, 13 char* p_buf, 14 unsigned int len); 15 int ssl_write(void* p_ssl, const char* p_buf, unsigned int len); 16 int ssl_write_str(void* p_ssl, const struct mystr* p_str); 17 int ssl_read_into_str(struct vsf_session* p_sess, 18 void* p_ssl, 19 struct mystr* p_str); 20 void ssl_init(struct vsf_session* p_sess); 21 int ssl_accept(struct vsf_session* p_sess, int fd); 22 int ssl_data_close(struct vsf_session* p_sess); 23 void ssl_comm_channel_init(struct vsf_session* p_sess); 24 void ssl_comm_channel_set_consumer_context(struct vsf_session* p_sess); 25 void ssl_comm_channel_set_producer_context(struct vsf_session* p_sess); 26 void handle_auth(struct vsf_session* p_sess); 27 void handle_pbsz(struct vsf_session* p_sess); 28 void handle_prot(struct vsf_session* p_sess); 29 void ssl_control_handshake(struct vsf_session* p_sess); 30 void ssl_add_entropy(struct vsf_session* p_sess); 31 32 #endif /* VSF_SSL_H */ 33 34