diff options
author | Richard Levitte <levitte@openssl.org> | 2019-09-26 07:42:06 +0200 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2019-09-27 19:03:33 +0200 |
commit | d4d28783473e5b4417068258f2553896ff618600 (patch) | |
tree | 88c749fe06ff5e82c780e25868f907f20b82d534 /doc/man3/OSSL_PARAM.pod | |
parent | Certificate Management Protocol (CMP, RFC 4210) extension to OpenSSL (diff) | |
download | openssl-d4d28783473e5b4417068258f2553896ff618600.tar.xz openssl-d4d28783473e5b4417068258f2553896ff618600.zip |
OSSL_PARAM.pod: document the mechanism to figure out buffer sizes
When requesting parameters, it's acceptable to make a first pass with
the |data| field of some parameters being NULL. That can be used to
help the requestor to figure out dynamically what buffer size is
needed. For variable size parameters, there's no other way to find
out.
Reviewed-by: Paul Dale <paul.dale@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/10025)
Diffstat (limited to '')
-rw-r--r-- | doc/man3/OSSL_PARAM.pod | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/man3/OSSL_PARAM.pod b/doc/man3/OSSL_PARAM.pod index 361028fa00..df532b4264 100644 --- a/doc/man3/OSSL_PARAM.pod +++ b/doc/man3/OSSL_PARAM.pod @@ -87,6 +87,11 @@ setting parameters) or shall (when requesting parameters) be stored, and I<data_size> is its size in bytes. The organization of the data depends on the parameter type and flag. +When I<requesting parameters>, it's acceptable for I<data> to be NULL. +This can be used by the I<requestor> to figure out dynamically exactly +how much buffer space is needed to store the parameter data. +In this case, I<data_size> is ignored. + When the B<OSSL_PARAM> is used as a parameter descriptor, I<data> should be ignored. If I<data_size> is zero, it means that an arbitrary data size is |