diff options
Diffstat (limited to 'src/testspdy/test_notls.c')
-rw-r--r-- | src/testspdy/test_notls.c | 36 |
1 files changed, 31 insertions, 5 deletions
diff --git a/src/testspdy/test_notls.c b/src/testspdy/test_notls.c index ec42920e..566f0a74 100644 --- a/src/testspdy/test_notls.c +++ b/src/testspdy/test_notls.c | |||
@@ -199,6 +199,9 @@ static ssize_t send_callback(spdylay_session *session, | |||
199 | const uint8_t *data, size_t length, int flags, | 199 | const uint8_t *data, size_t length, int flags, |
200 | void *user_data) | 200 | void *user_data) |
201 | { | 201 | { |
202 | (void)session; | ||
203 | (void)flags; | ||
204 | |||
202 | struct Connection *connection; | 205 | struct Connection *connection; |
203 | ssize_t rv; | 206 | ssize_t rv; |
204 | connection = (struct Connection*)user_data; | 207 | connection = (struct Connection*)user_data; |
@@ -237,6 +240,9 @@ static ssize_t recv_callback(spdylay_session *session, | |||
237 | uint8_t *buf, size_t length, int flags, | 240 | uint8_t *buf, size_t length, int flags, |
238 | void *user_data) | 241 | void *user_data) |
239 | { | 242 | { |
243 | (void)session; | ||
244 | (void)flags; | ||
245 | |||
240 | struct Connection *connection; | 246 | struct Connection *connection; |
241 | ssize_t rv; | 247 | ssize_t rv; |
242 | connection = (struct Connection*)user_data; | 248 | connection = (struct Connection*)user_data; |
@@ -278,6 +284,8 @@ static void before_ctrl_send_callback(spdylay_session *session, | |||
278 | spdylay_frame *frame, | 284 | spdylay_frame *frame, |
279 | void *user_data) | 285 | void *user_data) |
280 | { | 286 | { |
287 | (void)user_data; | ||
288 | |||
281 | if(type == SPDYLAY_SYN_STREAM) { | 289 | if(type == SPDYLAY_SYN_STREAM) { |
282 | struct Request *req; | 290 | struct Request *req; |
283 | int stream_id = frame->syn_stream.stream_id; | 291 | int stream_id = frame->syn_stream.stream_id; |
@@ -293,6 +301,8 @@ static void on_ctrl_send_callback(spdylay_session *session, | |||
293 | spdylay_frame_type type, | 301 | spdylay_frame_type type, |
294 | spdylay_frame *frame, void *user_data) | 302 | spdylay_frame *frame, void *user_data) |
295 | { | 303 | { |
304 | (void)user_data; | ||
305 | |||
296 | char **nv; | 306 | char **nv; |
297 | const char *name = NULL; | 307 | const char *name = NULL; |
298 | int32_t stream_id; | 308 | int32_t stream_id; |
@@ -318,6 +328,8 @@ static void on_ctrl_recv_callback(spdylay_session *session, | |||
318 | spdylay_frame_type type, | 328 | spdylay_frame_type type, |
319 | spdylay_frame *frame, void *user_data) | 329 | spdylay_frame *frame, void *user_data) |
320 | { | 330 | { |
331 | (void)user_data; | ||
332 | |||
321 | struct Request *req; | 333 | struct Request *req; |
322 | char **nv; | 334 | char **nv; |
323 | const char *name = NULL; | 335 | const char *name = NULL; |
@@ -361,6 +373,9 @@ static void on_stream_close_callback(spdylay_session *session, | |||
361 | spdylay_status_code status_code, | 373 | spdylay_status_code status_code, |
362 | void *user_data) | 374 | void *user_data) |
363 | { | 375 | { |
376 | (void)status_code; | ||
377 | (void)user_data; | ||
378 | |||
364 | struct Request *req; | 379 | struct Request *req; |
365 | req = spdylay_session_get_stream_user_data(session, stream_id); | 380 | req = spdylay_session_get_stream_user_data(session, stream_id); |
366 | if(req) { | 381 | if(req) { |
@@ -383,6 +398,9 @@ static void on_data_chunk_recv_callback(spdylay_session *session, uint8_t flags, | |||
383 | const uint8_t *data, size_t len, | 398 | const uint8_t *data, size_t len, |
384 | void *user_data) | 399 | void *user_data) |
385 | { | 400 | { |
401 | (void)flags; | ||
402 | (void)user_data; | ||
403 | |||
386 | struct Request *req; | 404 | struct Request *req; |
387 | req = spdylay_session_get_stream_user_data(session, stream_id); | 405 | req = spdylay_session_get_stream_user_data(session, stream_id); |
388 | if(req) { | 406 | if(req) { |
@@ -743,8 +761,19 @@ standard_request_handler(void *cls, | |||
743 | const char *version, | 761 | const char *version, |
744 | const char *host, | 762 | const char *host, |
745 | const char *scheme, | 763 | const char *scheme, |
746 | struct SPDY_NameValue * headers) | 764 | struct SPDY_NameValue * headers, |
765 | bool more) | ||
747 | { | 766 | { |
767 | (void)cls; | ||
768 | (void)request; | ||
769 | (void)priority; | ||
770 | (void)host; | ||
771 | (void)scheme; | ||
772 | (void)headers; | ||
773 | (void)method; | ||
774 | (void)version; | ||
775 | (void)more; | ||
776 | |||
748 | struct SPDY_Response *response=NULL; | 777 | struct SPDY_Response *response=NULL; |
749 | 778 | ||
750 | if(strcmp(CLS,cls)!=0) | 779 | if(strcmp(CLS,cls)!=0) |
@@ -818,9 +847,6 @@ childproc(int port) | |||
818 | if(NULL == (rcvbuf = malloc(strlen(RESPONSE_BODY)+1))) | 847 | if(NULL == (rcvbuf = malloc(strlen(RESPONSE_BODY)+1))) |
819 | killparent(parent,"no memory"); | 848 | killparent(parent,"no memory"); |
820 | 849 | ||
821 | SSL_load_error_strings(); | ||
822 | SSL_library_init(); | ||
823 | |||
824 | rv = parse_uri(&uri, uristr); | 850 | rv = parse_uri(&uri, uristr); |
825 | if(rv != 0) { | 851 | if(rv != 0) { |
826 | killparent(parent,"parse_uri failed"); | 852 | killparent(parent,"parse_uri failed"); |
@@ -912,7 +938,7 @@ parentproc( int port) | |||
912 | return WEXITSTATUS(childstatus); | 938 | return WEXITSTATUS(childstatus); |
913 | } | 939 | } |
914 | 940 | ||
915 | int main(int argc, char **argv) | 941 | int main() |
916 | { | 942 | { |
917 | int port = get_port(12123); | 943 | int port = get_port(12123); |
918 | parent = getpid(); | 944 | parent = getpid(); |