diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2023-05-09 07:19:25 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2023-05-09 07:19:25 +0000 |
commit | 60f299518cace5053b61aeaf665700b56cdc0145 (patch) | |
tree | d29e2389885afb69c8c78e3775d644010ed2e6b0 /lib | |
parent | 7e088778935a1bd26b7ec5042d7e738ba3588381 (diff) |
Make failure mode of EVP_AEAD_CTX_new() more explicit
Pointed out and ok by dlg
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libcrypto/man/EVP_AEAD_CTX_init.3 | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/lib/libcrypto/man/EVP_AEAD_CTX_init.3 b/lib/libcrypto/man/EVP_AEAD_CTX_init.3 index b6e872be0bc..269dcbd9fa2 100644 --- a/lib/libcrypto/man/EVP_AEAD_CTX_init.3 +++ b/lib/libcrypto/man/EVP_AEAD_CTX_init.3 @@ -1,4 +1,4 @@ -.\" $OpenBSD: EVP_AEAD_CTX_init.3,v 1.10 2022/01/10 22:44:22 tb Exp $ +.\" $OpenBSD: EVP_AEAD_CTX_init.3,v 1.11 2023/05/09 07:19:24 tb Exp $ .\" .\" Copyright (c) 2014, Google Inc. .\" Parts of the text were written by Adam Langley and David Benjamin. @@ -16,7 +16,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: January 10 2022 $ +.Dd $Mdocdate: May 9 2023 $ .Dt EVP_AEAD_CTX_INIT 3 .Os .Sh NAME @@ -266,9 +266,14 @@ It is also safer to use as it prevents common mistakes with the native APIs. .Fn EVP_AEAD_CTX_new returns the new .Vt EVP_AEAD_CTX -object or +object on success; +otherwise .Dv NULL -on failure. +is returned and +.Va errno +is set to +.Er ENOMEM . +.Pp .Fn EVP_AEAD_CTX_init , .Fn EVP_AEAD_CTX_open , and |