diff options
author | tb <> | 2021-05-20 14:41:47 +0000 |
---|---|---|
committer | tb <> | 2021-05-20 14:41:47 +0000 |
commit | 55b46c2aef9226b9aabc5b4026b3c5d0a0e887b5 (patch) | |
tree | 8ec4892cd8b424bb90b7b6d9bfef36eba79285c2 /src | |
parent | 16c2a91977a51569e2fc2b1581a8a16b8b2aac11 (diff) | |
download | openbsd-55b46c2aef9226b9aabc5b4026b3c5d0a0e887b5.tar.gz openbsd-55b46c2aef9226b9aabc5b4026b3c5d0a0e887b5.tar.bz2 openbsd-55b46c2aef9226b9aabc5b4026b3c5d0a0e887b5.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 'src')
-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 |