diff options
author | Adam Eijdenberg <eijdenberg@google.com> | 2015-10-19 11:16:25 -0700 |
---|---|---|
committer | Rich Salz <rsalz@openssl.org> | 2015-10-22 18:27:48 -0400 |
commit | 8cbb048c3ea416f2bd8a3706d027f3aa26ef08d9 (patch) | |
tree | 60b221d00c3a2a619b299855af78de2754723586 /doc | |
parent | 5212d39bd92ede18b22fe8173e724a7eac35cb8a (diff) | |
download | openssl-8cbb048c3ea416f2bd8a3706d027f3aa26ef08d9.tar.gz |
Clarify return values for EVP_DigestVerifyFinal.
Previous language was unclear. New language isn't pretty but I believe
it is more accurate.
Signed-off-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Ben Laurie <ben@openssl.org>
Reviewed-by: Richard Levitte <levitte@openssl.org>
Diffstat (limited to 'doc')
-rw-r--r-- | doc/crypto/EVP_DigestVerifyInit.pod | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/doc/crypto/EVP_DigestVerifyInit.pod b/doc/crypto/EVP_DigestVerifyInit.pod index 44d3cdbb0d..338fc74616 100644 --- a/doc/crypto/EVP_DigestVerifyInit.pod +++ b/doc/crypto/EVP_DigestVerifyInit.pod @@ -36,10 +36,11 @@ B<sig> of length B<siglen>. EVP_DigestVerifyInit() and EVP_DigestVerifyUpdate() return 1 for success and 0 for failure. -Unlike other functions the return value 0 from EVP_DigestVerifyFinal() only -indicates that the signature did not verify successfully (that is tbs did -not match the original data or the signature was of invalid form) it is not an -indication of a more serious error. +EVP_DigestVerifyFinal() returns 1 for success; any other value indicates +failure. A return value of zero indicates that the signature did not verify +successfully (that is, tbs did not match the original data or the signature had +an invalid form), while other values indicate a more serious error (and +sometimes also indicate an invalid signature form). The error codes can be obtained from L<ERR_get_error(3)>. |