Skip to content

Commit

Permalink
Merge pull request grpc#21744 from grpc/revert-21640-change_local_tcp…
Browse files Browse the repository at this point in the history
…_security_level

Revert "Update security level of local TCP connection"
  • Loading branch information
lidizheng authored Jan 22, 2020
2 parents 86c918e + b9c71f9 commit a65a590
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -120,10 +120,9 @@ void local_check_peer(grpc_security_connector* sc, tsi_peer peer,
}
if (peer.properties != nullptr) gpr_free(peer.properties);
peer.properties = new_properties;
// TODO(yihuazhang): Set security level of local TCP to TSI_SECURITY_NONE.
const char* security_level =
type == LOCAL_TCP
? tsi_security_level_to_string(TSI_SECURITY_NONE)
: tsi_security_level_to_string(TSI_PRIVACY_AND_INTEGRITY);
tsi_security_level_to_string(TSI_PRIVACY_AND_INTEGRITY);
tsi_result result = tsi_construct_string_peer_property_from_cstring(
TSI_SECURITY_LEVEL_PEER_PROPERTY, security_level,
&peer.properties[peer.property_count]);
Expand Down
2 changes: 1 addition & 1 deletion test/core/end2end/fixtures/h2_local_ipv4.cc
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ static grpc_end2end_test_config configs[] = {
FEATURE_MASK_SUPPORTS_DELAYED_CONNECTION |
FEATURE_MASK_SUPPORTS_CLIENT_CHANNEL |
FEATURE_MASK_SUPPORTS_AUTHORITY_HEADER |
FEATURE_MASK_DOES_NOT_SUPPORT_SEND_CALL_CREDENTIALS,
FEATURE_MASK_SUPPORTS_PER_CALL_CREDENTIALS,
nullptr, chttp2_create_fixture_fullstack_ipv4,
chttp2_init_client_fullstack_ipv4, chttp2_init_server_fullstack_ipv4,
grpc_end2end_local_chttp2_tear_down_fullstack}};
Expand Down
2 changes: 1 addition & 1 deletion test/core/end2end/fixtures/h2_local_ipv6.cc
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ static grpc_end2end_test_config configs[] = {
FEATURE_MASK_SUPPORTS_DELAYED_CONNECTION |
FEATURE_MASK_SUPPORTS_CLIENT_CHANNEL |
FEATURE_MASK_SUPPORTS_AUTHORITY_HEADER |
FEATURE_MASK_DOES_NOT_SUPPORT_SEND_CALL_CREDENTIALS,
FEATURE_MASK_SUPPORTS_PER_CALL_CREDENTIALS,
nullptr, chttp2_create_fixture_fullstack_ipv6,
chttp2_init_client_fullstack_ipv6, chttp2_init_server_fullstack_ipv6,
grpc_end2end_local_chttp2_tear_down_fullstack}};
Expand Down

0 comments on commit a65a590

Please sign in to comment.