From edd371a82ca838110de0b2dbc44c412b360080bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20P=C3=A9gouri=C3=A9-Gonnard?= Date: Tue, 6 Jan 2015 18:20:40 +0100 Subject: [PATCH] Enhance doc on ssl_write() --- include/polarssl/ssl.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/polarssl/ssl.h b/include/polarssl/ssl.h index 194e944718..4310ed6b71 100644 --- a/include/polarssl/ssl.h +++ b/include/polarssl/ssl.h @@ -1657,6 +1657,10 @@ int ssl_read( ssl_context *ssl, unsigned char *buf, size_t len ); * \note When this function returns POLARSSL_ERR_NET_WANT_WRITE, * it must be called later with the *same* arguments, * until it returns a positive value. + * + * \note This function may write less than the number of bytes + * requested if len is greater than the maximum record length. + * For arbitrary-sized messages, it should be called in a loop. */ int ssl_write( ssl_context *ssl, const unsigned char *buf, size_t len );