aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc/grpc_security.h
diff options
context:
space:
mode:
authorGravatar Julien Boeuf <jboeuf@google.com>2015-11-25 13:47:56 -0800
committerGravatar Julien Boeuf <jboeuf@google.com>2015-11-25 13:47:56 -0800
commiteb029c93fb273925102bd25e6972b9d9edf0ccde (patch)
tree435eafc3ea1128cbf93c7b829c7a95a8018a0c5b /include/grpc/grpc_security.h
parentcaf9935e456436a54931bf8112c25515100ccd20 (diff)
Better documentation of the method_name field.
Also passing empty string as opposed to NULL when the method name is not found. This is much less error-prone.
Diffstat (limited to 'include/grpc/grpc_security.h')
-rw-r--r--include/grpc/grpc_security.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/grpc/grpc_security.h b/include/grpc/grpc_security.h
index f4e90a5ef5..655f45a29b 100644
--- a/include/grpc/grpc_security.h
+++ b/include/grpc/grpc_security.h
@@ -247,7 +247,8 @@ typedef struct {
const char *service_url;
/* The method name of the RPC being called (not fully qualified).
- Can be NULL if no method name was found. */
+ The fully qualified method name can be built from the service_url:
+ full_qualified_method_name = ctx->service_url + '/' + ctx->method_name. */
const char *method_name;
/* The auth_context of the channel which gives the server's identity. */