EVP_Digest*: fix documented return values.
authortb <tb@openbsd.org>
Thu, 20 May 2021 14:41:47 +0000 (14:41 +0000)
committertb <tb@openbsd.org>
Thu, 20 May 2021 14:41:47 +0000 (14:41 +0000)
commitcef8ecf314b2c6e4a6718151eeaf7d234603d363
tree3dffc34341502e3ccb5bb4d015e80ff4cd1c4820
parent6f3a08625e6eec00ae4cdc5023bad06a0c8e7535
EVP_Digest*: fix documented return values.

EVP_DigestSign{,Init,Update,Final}() and EVP_DigestVerify{Init,Update}()
always returned 1 for success and 0 for failure. EVP_DigestVerify()
and EVP_DigestVerifyFinal() can return -1 or -2, though.

Based on OpenSSL 1.1.1 56c59ddd99da05c2f30832cccaffb873a8481555

ok inoguchi
lib/libcrypto/man/EVP_DigestSignInit.3
lib/libcrypto/man/EVP_DigestVerifyInit.3