aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cpp/client/insecure_credentials.cc
diff options
context:
space:
mode:
authorGravatar Craig Tiller <craig.tiller@gmail.com>2015-05-19 09:13:35 -0700
committerGravatar Craig Tiller <craig.tiller@gmail.com>2015-05-19 09:13:35 -0700
commit4f8b679a49a13778963c66bfb17b8d44253cac28 (patch)
treea584e8eb2593fe7059ca108780c8db39043cc700 /src/cpp/client/insecure_credentials.cc
parentf79f63cb1d25860df419790b6bff40dad4c0876e (diff)
parent626b4d15bd73707b9cd759067b1346ab2bd81ec8 (diff)
Merge github.com:grpc/grpc into mmm-mmm-mmm-mmm
Conflicts: Makefile build.json
Diffstat (limited to 'src/cpp/client/insecure_credentials.cc')
-rw-r--r--src/cpp/client/insecure_credentials.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/cpp/client/insecure_credentials.cc b/src/cpp/client/insecure_credentials.cc
index 8945b038de..5ad8784567 100644
--- a/src/cpp/client/insecure_credentials.cc
+++ b/src/cpp/client/insecure_credentials.cc
@@ -52,12 +52,15 @@ class InsecureCredentialsImpl GRPC_FINAL : public Credentials {
target, grpc_channel_create(target.c_str(), &channel_args)));
}
+ // InsecureCredentials should not be applied to a call.
+ bool ApplyToCall(grpc_call* call) GRPC_OVERRIDE { return false; }
+
SecureCredentials* AsSecureCredentials() GRPC_OVERRIDE { return nullptr; }
};
} // namespace
-std::unique_ptr<Credentials> InsecureCredentials() {
- return std::unique_ptr<Credentials>(new InsecureCredentialsImpl());
+std::shared_ptr<Credentials> InsecureCredentials() {
+ return std::shared_ptr<Credentials>(new InsecureCredentialsImpl());
}
} // namespace grpc