summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo Buehler <tb@cvs.openbsd.org>2024-11-30 21:20:45 +0000
committerTheo Buehler <tb@cvs.openbsd.org>2024-11-30 21:20:45 +0000
commit5906b5b334dcf7afd964f408da23ce5998a6ba2f (patch)
treeafb3dfaac4e6dfeff192cede66eee1d969c91c9d
parent303a3c472f1287f5c9e26ef69771e976b8e2ce2f (diff)
Be a bit more precise on the error conditions of CMS_get1_{certs,crls}()
-rw-r--r--lib/libcrypto/man/CMS_add0_cert.37
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/libcrypto/man/CMS_add0_cert.3 b/lib/libcrypto/man/CMS_add0_cert.3
index 9cfc8ac79f2..1823ba2b341 100644
--- a/lib/libcrypto/man/CMS_add0_cert.3
+++ b/lib/libcrypto/man/CMS_add0_cert.3
@@ -1,4 +1,4 @@
-.\" $OpenBSD: CMS_add0_cert.3,v 1.8 2024/11/30 21:15:19 tb Exp $
+.\" $OpenBSD: CMS_add0_cert.3,v 1.9 2024/11/30 21:20:44 tb Exp $
.\" full merge up to: OpenSSL e9b77246 Jan 20 19:58:49 2017 +0100
.\"
.\" This file is a derived work.
@@ -183,9 +183,10 @@ and
return the STACK of certificates or CRLs or
.Dv NULL
if there are none or an error occurs.
-The only error which will occur in practice is if the
+Possible errors are that the
.Fa cms
-type is invalid.
+type is invalid or memory allocation failure, not all
+errors result in an error on the error stack.
The returned stack must be freed using the appropriate
macro wrapper of
.Xr sk_pop_free 3 ,