diff options
author | Yash Tibrewal <yashkt@google.com> | 2018-09-30 22:13:44 -0700 |
---|---|---|
committer | Yash Tibrewal <yashkt@google.com> | 2018-09-30 22:13:44 -0700 |
commit | 1d999617e2ef67686d6f6d8be8e2dc62976380eb (patch) | |
tree | c057d4a50177fb2ef4e7a32be0eb186d0aa16aff /include/grpcpp/security | |
parent | 5525521456e8a5f18b829e90ba47319ff0feb5e2 (diff) |
Add experimental versions with interceptors for create channel from fd and inproc channel
Diffstat (limited to 'include/grpcpp/security')
-rw-r--r-- | include/grpcpp/security/credentials.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/include/grpcpp/security/credentials.h b/include/grpcpp/security/credentials.h index 53f0131c00..8dfbdec3e6 100644 --- a/include/grpcpp/security/credentials.h +++ b/include/grpcpp/security/credentials.h @@ -87,11 +87,15 @@ class ChannelCredentials : private GrpcLibraryCodegen { virtual std::shared_ptr<Channel> CreateChannel( const grpc::string& target, const ChannelArguments& args) = 0; + // This function should have been a pure virtual function, but it is + // implemented as a virtual function so that it does not break API. virtual std::shared_ptr<Channel> CreateChannelWithInterceptors( const grpc::string& target, const ChannelArguments& args, std::unique_ptr<std::vector< std::unique_ptr<experimental::ClientInterceptorFactoryInterface>>> - interceptor_creators) = 0; + interceptor_creators) { + return nullptr; + }; }; /// A call credentials object encapsulates the state needed by a client to |