aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/util
diff options
context:
space:
mode:
authorGravatar Nathan Herring <nherring@google.com>2018-07-19 21:32:11 +0200
committerGravatar Nathan Herring <nherring@google.com>2018-07-19 21:32:11 +0200
commite1d94dfe606b32f53f3663dd69cf78db2cb0477b (patch)
tree6b6c36a812629f8cc2f5e6cea11e50146c6734c2 /test/cpp/util
parent8c7ce557f8479fd0af421c2b3707905259293e04 (diff)
GoogleDefaultCredentials use SSL under the covers; include that case.
Diffstat (limited to 'test/cpp/util')
-rw-r--r--test/cpp/util/cli_credentials.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/cpp/util/cli_credentials.cc b/test/cpp/util/cli_credentials.cc
index 1f047ca3da..2494e22abb 100644
--- a/test/cpp/util/cli_credentials.cc
+++ b/test/cpp/util/cli_credentials.cc
@@ -67,7 +67,7 @@ const grpc::string CliCredentials::GetCredentialUsage() const {
}
const grpc::string CliCredentials::GetSslTargetNameOverride() const {
- return FLAGS_enable_ssl ? FLAGS_ssl_target : "";
+ return (FLAGS_enable_ssl || FLAGS_use_auth) ? FLAGS_ssl_target : "";
}
} // namespace testing