GNU libmicrohttpd  0.9.29
io_openssl.h
Go to the documentation of this file.
1 /*
2  This file is part of libmicrospdy
3  Copyright Copyright (C) 2012 Andrey Uzunov
4 
5  This program is free software: you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation, either version 3 of the License, or
8  (at your option) any later version.
9 
10  This program is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18 
27 #ifndef IO_OPENSSL_H
28 #define IO_OPENSSL_H
29 
30 #include "platform.h"
31 #include "io.h"
32 #include <openssl/err.h>
33 #include <openssl/ssl.h>
34 #include <openssl/rand.h>
35 
36 
41 void
43 
44 
50 void
52 
53 
62 int
64 
65 
72 void
74 
75 
83 int
85 
86 
93 void
95 
96 
108 int
109 SPDYF_openssl_recv(struct SPDY_Session *session,
110  void * buffer,
111  size_t size);
112 
113 
126 int
127 SPDYF_openssl_send(struct SPDY_Session *session,
128  const void * buffer,
129  size_t size);
130 
131 
139 int
140 SPDYF_openssl_is_pending(struct SPDY_Session *session);
141 
142 
150 int
152 
153 
162 int
163 SPDYF_openssl_after_write(struct SPDY_Session *session, int was_written);
164 
165 
166 #endif
void SPDYF_openssl_close_session(struct SPDY_Session *session)
Definition: io_openssl.c:170
int SPDYF_openssl_recv(struct SPDY_Session *session, void *buffer, size_t size)
Definition: io_openssl.c:184
struct SPDY_Daemon * daemon
Definition: structures.h:633
int SPDYF_openssl_before_write(struct SPDY_Session *session)
Definition: io_openssl.c:266
int SPDYF_openssl_init(struct SPDY_Daemon *daemon)
Definition: io_openssl.c:78
void SPDYF_openssl_global_init()
Definition: io_openssl.c:56
platform-specific includes for libmicrohttpd
Signatures for IO functions.
void SPDYF_openssl_deinit(struct SPDY_Daemon *daemon)
Definition: io_openssl.c:127
int SPDYF_openssl_is_pending(struct SPDY_Session *session)
Definition: io_openssl.c:255
int SPDYF_openssl_after_write(struct SPDY_Session *session, int was_written)
Definition: io_openssl.c:275
void SPDYF_openssl_global_deinit()
Definition: io_openssl.c:68
int SPDYF_openssl_new_session(struct SPDY_Session *session)
Definition: io_openssl.c:134
int SPDYF_openssl_send(struct SPDY_Session *session, const void *buffer, size_t size)
Definition: io_openssl.c:219