aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Hope Casey-Allen <hcaseyal@google.com>2018-06-28 11:23:59 -0700
committerGravatar Hope Casey-Allen <hcaseyal@google.com>2018-06-29 12:06:03 -0700
commitf061a88a0cb6bcc34ea0ef50ecb78d6ebed8d5a3 (patch)
tree52ca0afecddfac4e82ed7f024bf1773bf67fa913 /src
parent95554840a81cbcd5407e6b5a2e5c231b8baa2af8 (diff)
Remove auth_context from call data. Use channel data auth context instead
Diffstat (limited to 'src')
-rw-r--r--src/core/lib/security/transport/server_auth_filter.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/lib/security/transport/server_auth_filter.cc b/src/core/lib/security/transport/server_auth_filter.cc
index b49049c557..2dbefdf131 100644
--- a/src/core/lib/security/transport/server_auth_filter.cc
+++ b/src/core/lib/security/transport/server_auth_filter.cc
@@ -44,7 +44,6 @@ struct call_data {
grpc_metadata_array md;
const grpc_metadata* consumed_md;
size_t num_consumed_md;
- grpc_auth_context* auth_context;
grpc_closure cancel_closure;
gpr_atm state; // async_state
};
@@ -178,7 +177,7 @@ static void recv_initial_metadata_ready(void* arg, grpc_error* error) {
calld->md = metadata_batch_to_md_array(
batch->payload->recv_initial_metadata.recv_initial_metadata);
chand->creds->processor.process(
- chand->creds->processor.state, calld->auth_context,
+ chand->creds->processor.state, chand->auth_context,
calld->md.metadata, calld->md.count, on_md_processing_done, elem);
return;
}
@@ -217,7 +216,6 @@ static grpc_error* init_call_elem(grpc_call_element* elem,
grpc_server_security_context_create(args->arena);
server_ctx->auth_context =
GRPC_AUTH_CONTEXT_REF(chand->auth_context, "server_auth_filter");
- calld->auth_context = server_ctx->auth_context;
if (args->context[GRPC_CONTEXT_SECURITY].value != nullptr) {
args->context[GRPC_CONTEXT_SECURITY].destroy(
args->context[GRPC_CONTEXT_SECURITY].value);