Skip to content

Commit

Permalink
Clarify how to return string data
Browse files Browse the repository at this point in the history
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from #21004)

(cherry picked from commit eab9645)
  • Loading branch information
wbl authored and t8m committed May 25, 2023
1 parent 16ec1b0 commit bdac6bc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions doc/man3/OSSL_PARAM.pod
Expand Up @@ -267,6 +267,14 @@ B<OSSL_PARAM_OCTET_STRING>), but this is in no way mandatory.

=item *

If I<data> for a B<OSSL_PARAM_OCTET_STRING> or a
B<OSSL_PARAM_UTF8_STRING> is NULL, the I<responder> should
set I<return_size> to the size of the item to be returned
and return success. Later the responder will be called again
with I<data> pointing at the place for the value to be put.

=item *

If a I<responder> finds that some data sizes are too small for the
requested data, it must set I<return_size> for each such
B<OSSL_PARAM> item to the minimum required size, and eventually return
Expand Down

0 comments on commit bdac6bc

Please sign in to comment.