From f8b4b98669861115c8a9f662eb09a49de5fc74a4 Mon Sep 17 00:00:00 2001 From: Julien Boeuf Date: Mon, 10 Aug 2015 12:55:58 -0700 Subject: [PATCH] Improving unprotect doc. --- src/core/tsi/transport_security_interface.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/tsi/transport_security_interface.h b/src/core/tsi/transport_security_interface.h index 936b0c25b0a..e27e6b9fc92 100644 --- a/src/core/tsi/transport_security_interface.h +++ b/src/core/tsi/transport_security_interface.h @@ -158,6 +158,8 @@ tsi_result tsi_frame_protector_protect_flush( value is expected to be at most max_protected_frame_size minus overhead which means that max_protected_frame_size is a safe bet. The output value is the number of bytes actually written. + If *unprotected_bytes_size is unchanged, there may be more data remaining + to unprotect, and the caller should call this function again. - This method returns TSI_OK in case of success. Success includes cases where there is not enough data to output a frame in which case