diff options
author | tb <> | 2023-05-09 07:19:24 +0000 |
---|---|---|
committer | tb <> | 2023-05-09 07:19:24 +0000 |
commit | ceba2a8eb77eceed7e4f2c5518b11b3405f75a3c (patch) | |
tree | 433c7ddc3b0db1264e88af54b29f0293255926b3 /src/lib | |
parent | 977a2002270d79625c8895d7172b67a0c8544bbf (diff) | |
download | openbsd-ceba2a8eb77eceed7e4f2c5518b11b3405f75a3c.tar.gz openbsd-ceba2a8eb77eceed7e4f2c5518b11b3405f75a3c.tar.bz2 openbsd-ceba2a8eb77eceed7e4f2c5518b11b3405f75a3c.zip |
Make failure mode of EVP_AEAD_CTX_new() more explicit
Pointed out and ok by dlg
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/man/EVP_AEAD_CTX_init.3 | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/lib/libcrypto/man/EVP_AEAD_CTX_init.3 b/src/lib/libcrypto/man/EVP_AEAD_CTX_init.3 index b6e872be0b..269dcbd9fa 100644 --- a/src/lib/libcrypto/man/EVP_AEAD_CTX_init.3 +++ b/src/lib/libcrypto/man/EVP_AEAD_CTX_init.3 | |||
@@ -1,4 +1,4 @@ | |||
1 | .\" $OpenBSD: EVP_AEAD_CTX_init.3,v 1.10 2022/01/10 22:44:22 tb Exp $ | 1 | .\" $OpenBSD: EVP_AEAD_CTX_init.3,v 1.11 2023/05/09 07:19:24 tb Exp $ |
2 | .\" | 2 | .\" |
3 | .\" Copyright (c) 2014, Google Inc. | 3 | .\" Copyright (c) 2014, Google Inc. |
4 | .\" Parts of the text were written by Adam Langley and David Benjamin. | 4 | .\" Parts of the text were written by Adam Langley and David Benjamin. |
@@ -16,7 +16,7 @@ | |||
16 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | 16 | .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF |
17 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | 17 | .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. |
18 | .\" | 18 | .\" |
19 | .Dd $Mdocdate: January 10 2022 $ | 19 | .Dd $Mdocdate: May 9 2023 $ |
20 | .Dt EVP_AEAD_CTX_INIT 3 | 20 | .Dt EVP_AEAD_CTX_INIT 3 |
21 | .Os | 21 | .Os |
22 | .Sh NAME | 22 | .Sh NAME |
@@ -266,9 +266,14 @@ It is also safer to use as it prevents common mistakes with the native APIs. | |||
266 | .Fn EVP_AEAD_CTX_new | 266 | .Fn EVP_AEAD_CTX_new |
267 | returns the new | 267 | returns the new |
268 | .Vt EVP_AEAD_CTX | 268 | .Vt EVP_AEAD_CTX |
269 | object or | 269 | object on success; |
270 | otherwise | ||
270 | .Dv NULL | 271 | .Dv NULL |
271 | on failure. | 272 | is returned and |
273 | .Va errno | ||
274 | is set to | ||
275 | .Er ENOMEM . | ||
276 | .Pp | ||
272 | .Fn EVP_AEAD_CTX_init , | 277 | .Fn EVP_AEAD_CTX_init , |
273 | .Fn EVP_AEAD_CTX_open , | 278 | .Fn EVP_AEAD_CTX_open , |
274 | and | 279 | and |