diff options
author | 2015-07-13 10:10:31 -0700 | |
---|---|---|
committer | 2015-07-13 10:10:31 -0700 | |
commit | cc44ee50e467a956994a9d283084f40ccbd04a02 (patch) | |
tree | f45bad885a001ad2b39197284fc2e10aae4dc42d /src/cpp/server/server_context.cc | |
parent | 53132db4a46aaf93a6aef4dd73cd27250b836d6b (diff) | |
parent | 4d0b7427faecfdbb1635c2ab158c922d7511b865 (diff) |
Merge github.com:grpc/grpc into flow-like-lava-to-a-barnyard
Diffstat (limited to 'src/cpp/server/server_context.cc')
-rw-r--r-- | src/cpp/server/server_context.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/cpp/server/server_context.cc b/src/cpp/server/server_context.cc index 699895a3cf..1bb3a8bcc4 100644 --- a/src/cpp/server/server_context.cc +++ b/src/cpp/server/server_context.cc @@ -39,6 +39,8 @@ #include <grpc++/impl/sync.h> #include <grpc++/time.h> +#include "src/cpp/common/create_auth_context.h" + namespace grpc { // CompletionOp @@ -146,4 +148,9 @@ bool ServerContext::IsCancelled() { return completion_op_ && completion_op_->CheckCancelled(cq_); } +void ServerContext::set_call(grpc_call* call) { + call_ = call; + auth_context_ = CreateAuthContext(call); +} + } // namespace grpc |