From: Watson Ladd Date: Fri, 19 May 2023 20:55:08 +0000 (-0700) Subject: Clarify how to return string data X-Git-Tag: openssl-3.1.1~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e45c984b1824ccb7c81b290cea18e7bcf01cdcde;p=thirdparty%2Fopenssl.git Clarify how to return string data Reviewed-by: Paul Dale Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/21004) (cherry picked from commit eab96453bb145cde8e447f420a4ba099a5fa7004) --- diff --git a/doc/man3/OSSL_PARAM.pod b/doc/man3/OSSL_PARAM.pod index a1a275e0921..18da5bf99a0 100644 --- a/doc/man3/OSSL_PARAM.pod +++ b/doc/man3/OSSL_PARAM.pod @@ -267,6 +267,14 @@ B), but this is in no way mandatory. =item * +If I for a B or a +B is NULL, the I should +set I to the size of the item to be returned +and return success. Later the responder will be called again +with I pointing at the place for the value to be put. + +=item * + If a I finds that some data sizes are too small for the requested data, it must set I for each such B item to the minimum required size, and eventually return