Skip to content
Snippets Groups Projects
Commit 487f5a20 authored by yang-g's avatar yang-g
Browse files

add warning comments

parent f1ec3770
No related branches found
No related tags found
No related merge requests found
...@@ -118,6 +118,10 @@ class ClientContext { ...@@ -118,6 +118,10 @@ class ClientContext {
std::shared_ptr<const AuthContext> auth_context() const; std::shared_ptr<const AuthContext> auth_context() const;
// Return the peer uri in a string.
// WARNING: this value is never authenticated or subject to any security
// related code. It must not be used for any authentication related
// functionality. Instead, use auth_context.
grpc::string peer() const; grpc::string peer() const;
// Get and set census context // Get and set census context
......
...@@ -116,6 +116,10 @@ class ServerContext { ...@@ -116,6 +116,10 @@ class ServerContext {
std::shared_ptr<const AuthContext> auth_context() const; std::shared_ptr<const AuthContext> auth_context() const;
// Return the peer uri in a string.
// WARNING: this value is never authenticated or subject to any security
// related code. It must not be used for any authentication related
// functionality. Instead, use auth_context.
grpc::string peer() const; grpc::string peer() const;
private: private:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment