Check if num is 0 before trying to malloc memory. Otherwise for client hellos without...
[openssl.git] / doc / man3 / SSL_CTX_set_client_hello_cb.pod
index b8dad37adabbe0d867720df72446ea49c0182e41..74e168dc93ff5c0c79f6e10d78407deb403c9a0a 100644 (file)
@@ -65,6 +65,8 @@ both required, and on success the caller must release the storage allocated for
 B<*out> using OPENSSL_free().  The contents of B<*out> is an array of integers
 holding the numerical value of the TLS extension types in the order they appear
 in the ClientHello.  B<*outlen> contains the number of elements in the array.
+In situations when the ClientHello has no extensions, the function will return
+success with B<*out> set to NULL and B<*outlen> set to 0.
 
 =head1 NOTES