Lines Matching full:session
28 #include "session.h"
91 //TODO here session tickets are disabled for easier debuging with
134 SPDYF_openssl_new_session(struct SPDY_Session *session)
138 if(NULL == (session->io_context = SSL_new(session->daemon->io_context)))
143 if(1 != (ret = SSL_set_fd(session->io_context, session->socket_fd)))
146 SSL_free(session->io_context);
147 session->io_context = NULL;
153 if(1 != (ret = SSL_accept(session->io_context)))
156 SSL_free(session->io_context);
157 session->io_context = NULL;
161 SSL_set_accept_state(session->io_context);
170 SPDYF_openssl_close_session(struct SPDY_Session *session)
174 //the TLS session. The lib just sends it and will close the socket
177 SSL_shutdown(session->io_context);
179 SSL_free(session->io_context);
184 SPDYF_openssl_recv(struct SPDY_Session *session,
189 int n = SSL_read(session->io_context,
195 ret = SSL_get_error(session->io_context, n);
219 SPDYF_openssl_send(struct SPDY_Session *session,
225 int n = SSL_write(session->io_context,
231 ret = SSL_get_error(session->io_context, n);
255 SPDYF_openssl_is_pending(struct SPDY_Session *session)
261 return SSL_pending(session->io_context) > 0 ? SPDY_YES : SPDY_NO;
266 SPDYF_openssl_before_write(struct SPDY_Session *session)
268 (void)session;
275 SPDYF_openssl_after_write(struct SPDY_Session *session, int was_written)
277 (void)session;