summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authortb <>2024-03-04 09:24:07 +0000
committertb <>2024-03-04 09:24:07 +0000
commitc127570e7e2a5f4b372620aa6ec3550d123e4092 (patch)
tree07c833528dc3a89128b9eb224daaa841819f7f3f /src/lib
parent52bd5e2011b5fc1bd95e4c6de4876ea0f2ec0d96 (diff)
downloadopenbsd-c127570e7e2a5f4b372620aa6ec3550d123e4092.tar.gz
openbsd-c127570e7e2a5f4b372620aa6ec3550d123e4092.tar.bz2
openbsd-c127570e7e2a5f4b372620aa6ec3550d123e4092.zip
Document X509_STORE_get1_objects and deprecate the get0 version
This manual is ordered a bit strangely in that some functions are only documented in RETURN VALUES.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/man/X509_STORE_set1_param.342
1 files changed, 38 insertions, 4 deletions
diff --git a/src/lib/libcrypto/man/X509_STORE_set1_param.3 b/src/lib/libcrypto/man/X509_STORE_set1_param.3
index 538f22c759..85d308c3f2 100644
--- a/src/lib/libcrypto/man/X509_STORE_set1_param.3
+++ b/src/lib/libcrypto/man/X509_STORE_set1_param.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: X509_STORE_set1_param.3,v 1.20 2023/11/16 20:27:43 schwarze Exp $ 1.\" $OpenBSD: X509_STORE_set1_param.3,v 1.21 2024/03/04 09:24:07 tb Exp $
2.\" content checked up to: 2.\" content checked up to:
3.\" OpenSSL man3/X509_STORE_add_cert b0edda11 Mar 20 13:00:17 2018 +0000 3.\" OpenSSL man3/X509_STORE_add_cert b0edda11 Mar 20 13:00:17 2018 +0000
4.\" OpenSSL man3/X509_STORE_get0_param e90fc053 Jul 15 09:39:45 2017 -0400 4.\" OpenSSL man3/X509_STORE_get0_param e90fc053 Jul 15 09:39:45 2017 -0400
@@ -17,7 +17,7 @@
17.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 17.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
18.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 18.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
19.\" 19.\"
20.Dd $Mdocdate: November 16 2023 $ 20.Dd $Mdocdate: March 4 2024 $
21.Dt X509_STORE_SET1_PARAM 3 21.Dt X509_STORE_SET1_PARAM 3
22.Os 22.Os
23.Sh NAME 23.Sh NAME
@@ -29,6 +29,7 @@
29.Nm X509_STORE_add_cert , 29.Nm X509_STORE_add_cert ,
30.Nm X509_STORE_add_crl , 30.Nm X509_STORE_add_crl ,
31.Nm X509_STORE_get0_param , 31.Nm X509_STORE_get0_param ,
32.Nm X509_STORE_get1_objects ,
32.Nm X509_STORE_get0_objects , 33.Nm X509_STORE_get0_objects ,
33.Nm X509_STORE_get_ex_new_index , 34.Nm X509_STORE_get_ex_new_index ,
34.Nm X509_STORE_set_ex_data , 35.Nm X509_STORE_set_ex_data ,
@@ -76,6 +77,10 @@
76.Fa "X509_STORE *store" 77.Fa "X509_STORE *store"
77.Fc 78.Fc
78.Ft STACK_OF(X509_OBJECT) * 79.Ft STACK_OF(X509_OBJECT) *
80.Fo X509_STORE_get1_objects
81.Fa "X509_STORE *store"
82.Fc
83.Ft STACK_OF(X509_OBJECT) *
79.Fo X509_STORE_get0_objects 84.Fo X509_STORE_get0_objects
80.Fa "X509_STORE *store" 85.Fa "X509_STORE *store"
81.Fc 86.Fc
@@ -181,10 +186,35 @@ or if memory allocation fails.
181.Fn X509_STORE_get0_param 186.Fn X509_STORE_get0_param
182returns an internal pointer to the verification parameter object 187returns an internal pointer to the verification parameter object
183contained in the 188contained in the
189.Fa store .
190The returned pointer must not be freed by the calling application.
191.Pp
192.Fn X509_STORE_get1_objects
193returns a newly allocated stack containing
194the certificates, revocation lists, and private keys in
184.Fa store , 195.Fa store ,
196as well as cached objects added by
197.Xr X509_LOOKUP_hash_dir 3 .
198The caller must release the result with
199.Xr sk_pop_free 3
200and
201.Xr X509_OBJECT_free 3
202when done.
203.Pp
185.Fn X509_STORE_get0_objects 204.Fn X509_STORE_get0_objects
186to the stack of certificates, revocation lists, and private keys. 205is a deprecated function returning an internal pointer to
187The returned pointers must not be freed by the calling application. 206the stack of certificates, revocation lists, and private keys contained in
207.Fa store .
208The returned pointer must not be modified or freed by the calling application.
209This function is not thread-safe.
210If
211.Fa store
212is shared across multiple threads, callers cannot safely inspect the result of
213this function, because another thread may have concurrently added to it.
214In particular,
215.Xr X509_LOOKUP_hash_dir 3
216treats this list as a cache and may add to it in the course of certificate
217verification.
188.Pp 218.Pp
189.Fn X509_STORE_get_ex_new_index 219.Fn X509_STORE_get_ex_new_index
190returns a new index or \-1 on failure. 220returns a new index or \-1 on failure.
@@ -232,3 +262,7 @@ and
232.Fn X509_STORE_get_ex_data 262.Fn X509_STORE_get_ex_data
233first appeared in OpenSSL 1.1.0 and have been available since 263first appeared in OpenSSL 1.1.0 and have been available since
234.Ox 6.3 . 264.Ox 6.3 .
265.Pp
266X509_STORE_get1_objects
267first appeared in BoringSSL and has been available since
268.Ox 7.5 .