From 1202103583b591da0e67d07626d35fd72d87dafa Mon Sep 17 00:00:00 2001 From: "Dr. David von Oheimb" Date: Wed, 19 May 2021 16:12:49 +0200 Subject: [PATCH] EVP_DigestSignInit.pod: Clarification in EVP_DigestSignFinal() parameter 'sig' Reviewed-by: Tomas Mraz Reviewed-by: Paul Dale (Merged from https://github.com/openssl/openssl/pull/15354) --- doc/man3/EVP_DigestSignInit.pod | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/man3/EVP_DigestSignInit.pod b/doc/man3/EVP_DigestSignInit.pod index d61f20bed3a..a24db539498 100644 --- a/doc/man3/EVP_DigestSignInit.pod +++ b/doc/man3/EVP_DigestSignInit.pod @@ -118,8 +118,9 @@ EVP_DigestSignUpdate() hashes I bytes of data at I into the signature context I. This function can be called several times on the same I to include additional data. -EVP_DigestSignFinal() signs the data in I and places the signature in I. -If I is NULL then the maximum size of the output buffer is written to +Unless I is NULL EVP_DigestSignFinal() signs the data in I +and places the signature in I. +Otherwise the maximum necessary size of the output buffer is written to the I parameter. If I is not NULL then before the call the I parameter should contain the length of the I buffer. If the call is successful the signature is written to I and the amount of data -- 2.47.3