EVP_DigestSignInit.pod: Clarification in EVP_DigestSignFinal() parameter 'sig'
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>
Wed, 19 May 2021 14:12:49 +0000 (16:12 +0200)
committerPauli <pauli@openssl.org>
Fri, 21 May 2021 00:06:35 +0000 (10:06 +1000)
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/15354)

doc/man3/EVP_DigestSignInit.pod

index d61f20bed3ab6ee1930616a260776da20daea0e5..a24db539498cb15724cde0b8291f14587d92e6a2 100644 (file)
@@ -118,8 +118,9 @@ EVP_DigestSignUpdate() hashes I<cnt> bytes of data at I<d> into the
 signature context I<ctx>. This function can be called several times on the
 same I<ctx> to include additional data.
 
-EVP_DigestSignFinal() signs the data in I<ctx> and places the signature in I<sig>.
-If I<sig> is NULL then the maximum size of the output buffer is written to
+Unless I<sig> is NULL EVP_DigestSignFinal() signs the data in I<ctx>
+and places the signature in I<sig>.
+Otherwise the maximum necessary size of the output buffer is written to
 the I<siglen> parameter. If I<sig> is not NULL then before the call the
 I<siglen> parameter should contain the length of the I<sig> buffer. If the
 call is successful the signature is written to I<sig> and the amount of data