update local tcp security level

pull/21640/head
Yihua Zhang 5 years ago
parent da6a29dd6d
commit 372299406a
  1. 5
      src/core/lib/security/security_connector/local/local_security_connector.cc

@ -120,9 +120,10 @@ 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 =
tsi_security_level_to_string(TSI_PRIVACY_AND_INTEGRITY);
type == LOCAL_TCP
? tsi_security_level_to_string(TSI_SECURITY_NONE)
: 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]);

Loading…
Cancel
Save