Add a documentation clarification suggested by Matt Caswell
[openssl.git] / doc / ssl / SSL_get_ciphers.pod
index f2a81037c04ae46f57347384ddccb6732ddf5b66..341745436d16a609e7af7f5fd6c096ca86d00ae3 100644 (file)
@@ -35,6 +35,11 @@ the L<SSL_CIPHER_get_name(3)|SSL_CIPHER_get_name(3)> family of functions.
 Call SSL_get_cipher_list() with B<priority> starting from 0 to obtain the
 sorted list of available ciphers, until NULL is returned.
 
+Note: SSL_get_ciphers() and SSL_get_client_ciphers() return a pointer
+to an internal cipher stack, which will be freed later on when the SSL
+or SSL_SESSION object is freed.  Therefore, the calling code B<MUST
+NOT> free the return value itself.
+
 =head1 RETURN VALUES
 
 See DESCRIPTION