|
|
|
@ -87,7 +87,8 @@ static void chttp2_init_server_secure_fullstack( |
|
|
|
|
} |
|
|
|
|
f->server = grpc_server_create(server_args); |
|
|
|
|
grpc_server_register_completion_queue(f->server, f->server_cq); |
|
|
|
|
GPR_ASSERT(grpc_server_add_secure_http2_port(f->server, ffd->localaddr, server_creds)); |
|
|
|
|
GPR_ASSERT(grpc_server_add_secure_http2_port(f->server, ffd->localaddr, |
|
|
|
|
server_creds)); |
|
|
|
|
grpc_server_credentials_release(server_creds); |
|
|
|
|
grpc_server_start(f->server); |
|
|
|
|
} |
|
|
|
@ -143,7 +144,8 @@ int main(int argc, char **argv) { |
|
|
|
|
grpc_test_init(argc, argv); |
|
|
|
|
|
|
|
|
|
/* Set the SSL roots env var. */ |
|
|
|
|
roots_file = gpr_tmpfile("chttp2_simple_ssl_with_poll_fullstack_test", &roots_filename); |
|
|
|
|
roots_file = gpr_tmpfile("chttp2_simple_ssl_with_poll_fullstack_test", |
|
|
|
|
&roots_filename); |
|
|
|
|
GPR_ASSERT(roots_filename != NULL); |
|
|
|
|
GPR_ASSERT(roots_file != NULL); |
|
|
|
|
GPR_ASSERT(fwrite(test_root_cert, 1, roots_size, roots_file) == roots_size); |
|
|
|
|