Skip to content
Snippets Groups Projects
Commit a3e7bd85 authored by Mark D. Roth's avatar Mark D. Roth
Browse files

clang-format

parent 28ee43b9
Branches
Tags
No related merge requests found
...@@ -146,8 +146,8 @@ void grpc_handshake_manager_shutdown(grpc_exec_ctx* exec_ctx, ...@@ -146,8 +146,8 @@ void grpc_handshake_manager_shutdown(grpc_exec_ctx* exec_ctx,
static void call_next_handshaker(grpc_exec_ctx* exec_ctx, static void call_next_handshaker(grpc_exec_ctx* exec_ctx,
grpc_endpoint* endpoint, grpc_endpoint* endpoint,
grpc_channel_args* args, grpc_channel_args* args,
gpr_slice_buffer* read_buffer, gpr_slice_buffer* read_buffer, void* user_data,
void* user_data, grpc_error* error) { grpc_error* error) {
grpc_handshake_manager* mgr = user_data; grpc_handshake_manager* mgr = user_data;
GPR_ASSERT(mgr->state != NULL); GPR_ASSERT(mgr->state != NULL);
GPR_ASSERT(mgr->state->index < mgr->count); GPR_ASSERT(mgr->state->index < mgr->count);
...@@ -166,10 +166,9 @@ static void call_next_handshaker(grpc_exec_ctx* exec_ctx, ...@@ -166,10 +166,9 @@ static void call_next_handshaker(grpc_exec_ctx* exec_ctx,
user_data = mgr->state->final_user_data; user_data = mgr->state->final_user_data;
} }
// Invoke handshaker. // Invoke handshaker.
grpc_handshaker_do_handshake(exec_ctx, mgr->handshakers[mgr->state->index], grpc_handshaker_do_handshake(
endpoint, args, read_buffer, exec_ctx, mgr->handshakers[mgr->state->index], endpoint, args,
mgr->state->deadline, mgr->state->acceptor, read_buffer, mgr->state->deadline, mgr->state->acceptor, cb, user_data);
cb, user_data);
++mgr->state->index; ++mgr->state->index;
// If this is the last handshaker, clean up state. // If this is the last handshaker, clean up state.
if (mgr->state->index == mgr->count) { if (mgr->state->index == mgr->count) {
......
...@@ -79,8 +79,7 @@ struct grpc_handshaker_vtable { ...@@ -79,8 +79,7 @@ struct grpc_handshaker_vtable {
/// \a acceptor will be NULL for client-side handshakers. /// \a acceptor will be NULL for client-side handshakers.
void (*do_handshake)(grpc_exec_ctx* exec_ctx, grpc_handshaker* handshaker, void (*do_handshake)(grpc_exec_ctx* exec_ctx, grpc_handshaker* handshaker,
grpc_endpoint* endpoint, grpc_channel_args* args, grpc_endpoint* endpoint, grpc_channel_args* args,
gpr_slice_buffer* read_buffer, gpr_slice_buffer* read_buffer, gpr_timespec deadline,
gpr_timespec deadline,
grpc_tcp_server_acceptor* acceptor, grpc_tcp_server_acceptor* acceptor,
grpc_handshaker_done_cb cb, void* user_data); grpc_handshaker_done_cb cb, void* user_data);
}; };
......
...@@ -325,14 +325,11 @@ static void fake_channel_do_handshake(grpc_exec_ctx *exec_ctx, ...@@ -325,14 +325,11 @@ static void fake_channel_do_handshake(grpc_exec_ctx *exec_ctx,
cb, user_data); cb, user_data);
} }
static void fake_server_do_handshake(grpc_exec_ctx *exec_ctx, static void fake_server_do_handshake(
grpc_server_security_connector *sc, grpc_exec_ctx *exec_ctx, grpc_server_security_connector *sc,
grpc_tcp_server_acceptor *acceptor, grpc_tcp_server_acceptor *acceptor, grpc_endpoint *nonsecure_endpoint,
grpc_endpoint *nonsecure_endpoint, gpr_slice_buffer *read_buffer, gpr_timespec deadline,
gpr_slice_buffer *read_buffer, grpc_security_handshake_done_cb cb, void *user_data) {
gpr_timespec deadline,
grpc_security_handshake_done_cb cb,
void *user_data) {
grpc_do_security_handshake(exec_ctx, tsi_create_fake_handshaker(0), &sc->base, grpc_do_security_handshake(exec_ctx, tsi_create_fake_handshaker(0), &sc->base,
false, nonsecure_endpoint, read_buffer, deadline, false, nonsecure_endpoint, read_buffer, deadline,
cb, user_data); cb, user_data);
...@@ -447,14 +444,11 @@ static void ssl_channel_do_handshake(grpc_exec_ctx *exec_ctx, ...@@ -447,14 +444,11 @@ static void ssl_channel_do_handshake(grpc_exec_ctx *exec_ctx,
} }
} }
static void ssl_server_do_handshake(grpc_exec_ctx *exec_ctx, static void ssl_server_do_handshake(
grpc_server_security_connector *sc, grpc_exec_ctx *exec_ctx, grpc_server_security_connector *sc,
grpc_tcp_server_acceptor *acceptor, grpc_tcp_server_acceptor *acceptor, grpc_endpoint *nonsecure_endpoint,
grpc_endpoint *nonsecure_endpoint, gpr_slice_buffer *read_buffer, gpr_timespec deadline,
gpr_slice_buffer *read_buffer, grpc_security_handshake_done_cb cb, void *user_data) {
gpr_timespec deadline,
grpc_security_handshake_done_cb cb,
void *user_data) {
grpc_ssl_server_security_connector *c = grpc_ssl_server_security_connector *c =
(grpc_ssl_server_security_connector *)sc; (grpc_ssl_server_security_connector *)sc;
tsi_handshaker *handshaker; tsi_handshaker *handshaker;
......
...@@ -158,8 +158,7 @@ void grpc_channel_security_connector_check_call_host( ...@@ -158,8 +158,7 @@ void grpc_channel_security_connector_check_call_host(
void grpc_channel_security_connector_do_handshake( void grpc_channel_security_connector_do_handshake(
grpc_exec_ctx *exec_ctx, grpc_channel_security_connector *connector, grpc_exec_ctx *exec_ctx, grpc_channel_security_connector *connector,
grpc_endpoint *nonsecure_endpoint, gpr_slice_buffer *read_buffer, grpc_endpoint *nonsecure_endpoint, gpr_slice_buffer *read_buffer,
gpr_timespec deadline, grpc_security_handshake_done_cb cb, gpr_timespec deadline, grpc_security_handshake_done_cb cb, void *user_data);
void *user_data);
/* --- server_security_connector object. --- /* --- server_security_connector object. ---
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment