From: tb Date: Thu, 20 May 2021 14:41:47 +0000 (+0000) Subject: EVP_Digest*: fix documented return values. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=cef8ecf314b2c6e4a6718151eeaf7d234603d363;p=openbsd 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 --- diff --git a/lib/libcrypto/man/EVP_DigestSignInit.3 b/lib/libcrypto/man/EVP_DigestSignInit.3 index af18b6f3332..57db4b31d36 100644 --- a/lib/libcrypto/man/EVP_DigestSignInit.3 +++ b/lib/libcrypto/man/EVP_DigestSignInit.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: EVP_DigestSignInit.3,v 1.10 2021/05/13 06:00:53 tb Exp $ +.\" $OpenBSD: EVP_DigestSignInit.3,v 1.11 2021/05/20 14:41:47 tb Exp $ .\" OpenSSL 9b86974e Aug 17 15:21:33 2015 -0400 .\" .\" This file was written by Dr. Stephen Henson . @@ -49,7 +49,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED .\" OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: May 13 2021 $ +.Dd $Mdocdate: May 20 2021 $ .Dt EVP_DIGESTSIGNINIT 3 .Os .Sh NAME @@ -225,9 +225,7 @@ signature for any set of parameters. .Fn EVP_DigestSignFinal , and .Fn EVP_DigestSign -return 1 for success and 0 or a negative value for failure. -In particular, a return value of -2 indicates the operation is not -supported by the public key algorithm. +return 1 for success and 0 for failure. .Pp The error codes can be obtained from .Xr ERR_get_error 3 . diff --git a/lib/libcrypto/man/EVP_DigestVerifyInit.3 b/lib/libcrypto/man/EVP_DigestVerifyInit.3 index 29e7cd86e36..0b3fa139215 100644 --- a/lib/libcrypto/man/EVP_DigestVerifyInit.3 +++ b/lib/libcrypto/man/EVP_DigestVerifyInit.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: EVP_DigestVerifyInit.3,v 1.12 2021/05/13 06:00:53 tb Exp $ +.\" $OpenBSD: EVP_DigestVerifyInit.3,v 1.13 2021/05/20 14:41:47 tb Exp $ .\" OpenSSL fb552ac6 Sep 30 23:43:01 2009 +0000 .\" .\" This file was written by Dr. Stephen Henson . @@ -49,7 +49,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED .\" OF THE POSSIBILITY OF SUCH DAMAGE. .\" -.Dd $Mdocdate: May 13 2021 $ +.Dd $Mdocdate: May 20 2021 $ .Dt EVP_DIGESTVERIFYINIT 3 .Os .Sh NAME @@ -195,9 +195,7 @@ or a memory leak will occur. .Fn EVP_DigestVerifyInit and .Fn EVP_DigestVerifyUpdate -return 1 for success and 0 or a negative value for failure. -In particular a return value of -2 indicates the operation is not -supported by the public key algorithm. +return 1 for success and 0 for failure. .Pp .Fn EVP_DigestVerifyFinal and