summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2014-07-08 20:37:48 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2014-07-08 20:37:48 +0000
commit0394d53f86f541e9dff2955afbc6bc6dbef34c0a (patch)
treeba62156624a9f62c02eefd28613f87013c14c51d
parent460185d754fc7e31924f6209155ed38beb3a84de (diff)
Document SSL_CIPHER_description() will now use asprintf if passed a NULL
buffer.
-rw-r--r--lib/libssl/src/doc/ssl/SSL_CIPHER_get_name.pod10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libssl/src/doc/ssl/SSL_CIPHER_get_name.pod b/lib/libssl/src/doc/ssl/SSL_CIPHER_get_name.pod
index c56e8f49d96..fbade905f35 100644
--- a/lib/libssl/src/doc/ssl/SSL_CIPHER_get_name.pod
+++ b/lib/libssl/src/doc/ssl/SSL_CIPHER_get_name.pod
@@ -28,11 +28,11 @@ SSL_CIPHER_get_version() returns the protocol version for B<cipher>, currently
"SSLv2", "SSLv3", or "TLSv1". If B<cipher> is NULL, "(NONE)" is returned.
SSL_CIPHER_description() returns a textual description of the cipher used
-into the buffer B<buf> of length B<len> provided. B<len> must be at least
-128 bytes, otherwise a pointer to the string "Buffer too small" is
-returned. If B<buf> is NULL, a buffer of 128 bytes is allocated using
-OPENSSL_malloc(). If the allocation fails, a pointer to the string
-"OPENSSL_malloc Error" is returned.
+into the buffer B<buf> of length B<len> provided.
+If B<buf> is NULL, a buffer is allocated using asprintf(); that
+buffer should be freed up using the B<free> function.
+If B<len> is too small, or if B<buf> is NULL and the allocation fails, a
+pointer to the string "Buffer too small" is returned.
=head1 NOTES