aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cpp/client/insecure_credentials.cc
diff options
context:
space:
mode:
authorGravatar Julien Boeuf <jboeuf@google.com>2015-10-12 13:26:21 -0700
committerGravatar Julien Boeuf <jboeuf@google.com>2015-10-12 14:09:03 -0700
commit54a902ed17a69c671e5212b115fe5f219654240a (patch)
tree875e994f7662efb8b77e82ad5d1efea36647d091 /src/cpp/client/insecure_credentials.cc
parent26bf71ce37d39bb3dd2c1ae01fa837db8a082799 (diff)
Successfully compile C++ libary (not tests yet).
Diffstat (limited to 'src/cpp/client/insecure_credentials.cc')
-rw-r--r--src/cpp/client/insecure_credentials.cc12
1 files changed, 5 insertions, 7 deletions
diff --git a/src/cpp/client/insecure_credentials.cc b/src/cpp/client/insecure_credentials.cc
index c476f3ce95..563fa9267d 100644
--- a/src/cpp/client/insecure_credentials.cc
+++ b/src/cpp/client/insecure_credentials.cc
@@ -43,7 +43,7 @@
namespace grpc {
namespace {
-class InsecureCredentialsImpl GRPC_FINAL : public Credentials {
+class InsecureChannelCredentialsImpl GRPC_FINAL : public ChannelCredentials {
public:
std::shared_ptr<grpc::Channel> CreateChannel(
const string& target, const grpc::ChannelArguments& args) GRPC_OVERRIDE {
@@ -54,15 +54,13 @@ class InsecureCredentialsImpl GRPC_FINAL : public Credentials {
grpc_insecure_channel_create(target.c_str(), &channel_args, nullptr));
}
- // InsecureCredentials should not be applied to a call.
- bool ApplyToCall(grpc_call* call) GRPC_OVERRIDE { return false; }
-
- SecureCredentials* AsSecureCredentials() GRPC_OVERRIDE { return nullptr; }
+ SecureChannelCredentials* AsSecureCredentials() GRPC_OVERRIDE { return nullptr; }
};
} // namespace
-std::shared_ptr<Credentials> InsecureCredentials() {
- return std::shared_ptr<Credentials>(new InsecureCredentialsImpl());
+std::shared_ptr<ChannelCredentials> InsecureChannelCredentials() {
+ return std::shared_ptr<ChannelCredentials>(
+ new InsecureChannelCredentialsImpl());
}
} // namespace grpc