diff options
author | 2015-12-17 21:35:47 -0800 | |
---|---|---|
committer | 2015-12-17 21:35:47 -0800 | |
commit | 1d9ac6612d3a64f6598e69a4d41bdba6c01b6b2f (patch) | |
tree | 18556cb929c5a24904a5d5d19fa2ece8ce7b8543 /src/core/security/client_auth_filter.c | |
parent | 5b194036b2f2a0a0368fb190b68da68267728d27 (diff) |
Removing the peer from the SSL security connector.
- Missing unit tests.
Diffstat (limited to 'src/core/security/client_auth_filter.c')
-rw-r--r-- | src/core/security/client_auth_filter.c | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/src/core/security/client_auth_filter.c b/src/core/security/client_auth_filter.c index c55990025b..1cb247d874 100644 --- a/src/core/security/client_auth_filter.c +++ b/src/core/security/client_auth_filter.c @@ -250,27 +250,13 @@ static void auth_start_transport_op(grpc_exec_ctx *exec_ctx, } } if (calld->host != NULL) { - grpc_security_status status; const char *call_host = grpc_mdstr_as_c_string(calld->host); calld->op = *op; /* Copy op (originates from the caller's stack). */ - status = grpc_channel_security_connector_check_call_host( - exec_ctx, chand->security_connector, call_host, on_host_checked, - elem); - if (status != GRPC_SECURITY_OK) { - if (status == GRPC_SECURITY_ERROR) { - char *error_msg; - gpr_asprintf(&error_msg, - "Invalid host %s set in :authority metadata.", - call_host); - bubble_up_error(exec_ctx, elem, GRPC_STATUS_INVALID_ARGUMENT, - error_msg); - gpr_free(error_msg); - } - return; /* early exit */ - } + grpc_channel_security_connector_check_call_host( + exec_ctx, chand->security_connector, call_host, chand->auth_context, + on_host_checked, elem); + return; /* early exit */ } - send_security_metadata(exec_ctx, elem, op); - return; /* early exit */ } /* pass control down the stack */ |