|
|
@ -63,6 +63,8 @@ class DefaultCredentialsProvider : public CredentialsProvider { |
|
|
|
SslCredentialsOptions ssl_opts = {test_root_cert, "", ""}; |
|
|
|
SslCredentialsOptions ssl_opts = {test_root_cert, "", ""}; |
|
|
|
args->SetSslTargetNameOverride("foo.test.google.fr"); |
|
|
|
args->SetSslTargetNameOverride("foo.test.google.fr"); |
|
|
|
return SslCredentials(ssl_opts); |
|
|
|
return SslCredentials(ssl_opts); |
|
|
|
|
|
|
|
} else if (type == grpc::testing::kGoogleDefaultCredentialsType) { |
|
|
|
|
|
|
|
return grpc::GoogleDefaultCredentials(); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
std::unique_lock<std::mutex> lock(mu_); |
|
|
|
std::unique_lock<std::mutex> lock(mu_); |
|
|
|
auto it(std::find(added_secure_type_names_.begin(), |
|
|
|
auto it(std::find(added_secure_type_names_.begin(), |
|
|
|