|
|
|
@ -66,8 +66,7 @@ grpc_core::RefCountedPtr<grpc_auth_context> local_auth_context_create( |
|
|
|
|
return ctx; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
void local_check_peer(grpc_security_connector* sc, tsi_peer peer, |
|
|
|
|
grpc_endpoint* ep, |
|
|
|
|
void local_check_peer(tsi_peer peer, grpc_endpoint* ep, |
|
|
|
|
grpc_core::RefCountedPtr<grpc_auth_context>* auth_context, |
|
|
|
|
grpc_closure* on_peer_checked, |
|
|
|
|
grpc_local_connect_type type) { |
|
|
|
@ -178,7 +177,7 @@ class grpc_local_channel_security_connector final |
|
|
|
|
grpc_closure* on_peer_checked) override { |
|
|
|
|
grpc_local_credentials* creds = |
|
|
|
|
reinterpret_cast<grpc_local_credentials*>(mutable_channel_creds()); |
|
|
|
|
local_check_peer(this, peer, ep, auth_context, on_peer_checked, |
|
|
|
|
local_check_peer(peer, ep, auth_context, on_peer_checked, |
|
|
|
|
creds->connect_type()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -227,7 +226,7 @@ class grpc_local_server_security_connector final |
|
|
|
|
grpc_closure* on_peer_checked) override { |
|
|
|
|
grpc_local_server_credentials* creds = |
|
|
|
|
static_cast<grpc_local_server_credentials*>(mutable_server_creds()); |
|
|
|
|
local_check_peer(this, peer, ep, auth_context, on_peer_checked, |
|
|
|
|
local_check_peer(peer, ep, auth_context, on_peer_checked, |
|
|
|
|
creds->connect_type()); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|