aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc/compression.h
diff options
context:
space:
mode:
authorGravatar David Garcia Quintas <dgq@google.com>2016-04-23 00:17:05 -0700
committerGravatar David Garcia Quintas <dgq@google.com>2016-04-23 00:17:05 -0700
commit73dcbda5b006fac4651480f7692b30db993b79b9 (patch)
treeab5ce0d90300dedfdbc1954679f5cf3c4bcd1583 /include/grpc/compression.h
parente52be8c8a1e35e5fd709bfe99f95a12f90029aed (diff)
Validation for incoming compressed data
Diffstat (limited to 'include/grpc/compression.h')
-rw-r--r--include/grpc/compression.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/grpc/compression.h b/include/grpc/compression.h
index 8de4b133d4..22bcf0e302 100644
--- a/include/grpc/compression.h
+++ b/include/grpc/compression.h
@@ -51,7 +51,8 @@ GRPCAPI int grpc_compression_algorithm_parse(
grpc_compression_algorithm *algorithm);
/** Updates \a name with the encoding name corresponding to a valid \a
- * algorithm. Returns 1 upon success, 0 otherwise. */
+ * algorithm. Note that \a name is statically allocated and must *not* be freed.
+ * Returns 1 upon success, 0 otherwise. */
GRPCAPI int grpc_compression_algorithm_name(
grpc_compression_algorithm algorithm, char **name);