diff options
| author | tb <> | 2021-05-20 14:41:47 +0000 |
|---|---|---|
| committer | tb <> | 2021-05-20 14:41:47 +0000 |
| commit | 56b7ccae189caf18ce526e844a806a7c1e88e6bd (patch) | |
| tree | 8ec4892cd8b424bb90b7b6d9bfef36eba79285c2 /src/lib/libc | |
| parent | 0a6ca3b8b36dd7498be76015c0dab5880a146f39 (diff) | |
| download | openbsd-56b7ccae189caf18ce526e844a806a7c1e88e6bd.tar.gz openbsd-56b7ccae189caf18ce526e844a806a7c1e88e6bd.tar.bz2 openbsd-56b7ccae189caf18ce526e844a806a7c1e88e6bd.zip | |
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
Diffstat (limited to '')
| -rw-r--r-- | src/lib/libcrypto/man/EVP_DigestSignInit.3 | 8 | ||||
| -rw-r--r-- | src/lib/libcrypto/man/EVP_DigestVerifyInit.3 | 8 |
2 files changed, 6 insertions, 10 deletions
diff --git a/src/lib/libcrypto/man/EVP_DigestSignInit.3 b/src/lib/libcrypto/man/EVP_DigestSignInit.3 index af18b6f333..57db4b31d3 100644 --- a/src/lib/libcrypto/man/EVP_DigestSignInit.3 +++ b/src/lib/libcrypto/man/EVP_DigestSignInit.3 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: EVP_DigestSignInit.3,v 1.10 2021/05/13 06:00:53 tb Exp $ | 1 | .\" $OpenBSD: EVP_DigestSignInit.3,v 1.11 2021/05/20 14:41:47 tb Exp $ |
| 2 | .\" OpenSSL 9b86974e Aug 17 15:21:33 2015 -0400 | 2 | .\" OpenSSL 9b86974e Aug 17 15:21:33 2015 -0400 |
| 3 | .\" | 3 | .\" |
| 4 | .\" This file was written by Dr. Stephen Henson <steve@openssl.org>. | 4 | .\" This file was written by Dr. Stephen Henson <steve@openssl.org>. |
| @@ -49,7 +49,7 @@ | |||
| 49 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 49 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
| 50 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 50 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
| 51 | .\" | 51 | .\" |
| 52 | .Dd $Mdocdate: May 13 2021 $ | 52 | .Dd $Mdocdate: May 20 2021 $ |
| 53 | .Dt EVP_DIGESTSIGNINIT 3 | 53 | .Dt EVP_DIGESTSIGNINIT 3 |
| 54 | .Os | 54 | .Os |
| 55 | .Sh NAME | 55 | .Sh NAME |
| @@ -225,9 +225,7 @@ signature for any set of parameters. | |||
| 225 | .Fn EVP_DigestSignFinal , | 225 | .Fn EVP_DigestSignFinal , |
| 226 | and | 226 | and |
| 227 | .Fn EVP_DigestSign | 227 | .Fn EVP_DigestSign |
| 228 | return 1 for success and 0 or a negative value for failure. | 228 | return 1 for success and 0 for failure. |
| 229 | In particular, a return value of -2 indicates the operation is not | ||
| 230 | supported by the public key algorithm. | ||
| 231 | .Pp | 229 | .Pp |
| 232 | The error codes can be obtained from | 230 | The error codes can be obtained from |
| 233 | .Xr ERR_get_error 3 . | 231 | .Xr ERR_get_error 3 . |
diff --git a/src/lib/libcrypto/man/EVP_DigestVerifyInit.3 b/src/lib/libcrypto/man/EVP_DigestVerifyInit.3 index 29e7cd86e3..0b3fa13921 100644 --- a/src/lib/libcrypto/man/EVP_DigestVerifyInit.3 +++ b/src/lib/libcrypto/man/EVP_DigestVerifyInit.3 | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | .\" $OpenBSD: EVP_DigestVerifyInit.3,v 1.12 2021/05/13 06:00:53 tb Exp $ | 1 | .\" $OpenBSD: EVP_DigestVerifyInit.3,v 1.13 2021/05/20 14:41:47 tb Exp $ |
| 2 | .\" OpenSSL fb552ac6 Sep 30 23:43:01 2009 +0000 | 2 | .\" OpenSSL fb552ac6 Sep 30 23:43:01 2009 +0000 |
| 3 | .\" | 3 | .\" |
| 4 | .\" This file was written by Dr. Stephen Henson <steve@openssl.org>. | 4 | .\" This file was written by Dr. Stephen Henson <steve@openssl.org>. |
| @@ -49,7 +49,7 @@ | |||
| 49 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | 49 | .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED |
| 50 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. | 50 | .\" OF THE POSSIBILITY OF SUCH DAMAGE. |
| 51 | .\" | 51 | .\" |
| 52 | .Dd $Mdocdate: May 13 2021 $ | 52 | .Dd $Mdocdate: May 20 2021 $ |
| 53 | .Dt EVP_DIGESTVERIFYINIT 3 | 53 | .Dt EVP_DIGESTVERIFYINIT 3 |
| 54 | .Os | 54 | .Os |
| 55 | .Sh NAME | 55 | .Sh NAME |
| @@ -195,9 +195,7 @@ or a memory leak will occur. | |||
| 195 | .Fn EVP_DigestVerifyInit | 195 | .Fn EVP_DigestVerifyInit |
| 196 | and | 196 | and |
| 197 | .Fn EVP_DigestVerifyUpdate | 197 | .Fn EVP_DigestVerifyUpdate |
| 198 | return 1 for success and 0 or a negative value for failure. | 198 | return 1 for success and 0 for failure. |
| 199 | In particular a return value of -2 indicates the operation is not | ||
| 200 | supported by the public key algorithm. | ||
| 201 | .Pp | 199 | .Pp |
| 202 | .Fn EVP_DigestVerifyFinal | 200 | .Fn EVP_DigestVerifyFinal |
| 203 | and | 201 | and |
