diff options
Diffstat (limited to 'upstream/archlinux/man3/X509_STORE_get0_param.3ssl')
-rw-r--r-- | upstream/archlinux/man3/X509_STORE_get0_param.3ssl | 19 |
1 files changed, 15 insertions, 4 deletions
diff --git a/upstream/archlinux/man3/X509_STORE_get0_param.3ssl b/upstream/archlinux/man3/X509_STORE_get0_param.3ssl index 0375e487..9149bad8 100644 --- a/upstream/archlinux/man3/X509_STORE_get0_param.3ssl +++ b/upstream/archlinux/man3/X509_STORE_get0_param.3ssl @@ -55,14 +55,14 @@ .\" ======================================================================== .\" .IX Title "X509_STORE_GET0_PARAM 3ssl" -.TH X509_STORE_GET0_PARAM 3ssl 2024-01-30 3.2.1 OpenSSL +.TH X509_STORE_GET0_PARAM 3ssl 2024-04-28 3.3.0 OpenSSL .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH NAME X509_STORE_get0_param, X509_STORE_set1_param, -X509_STORE_get0_objects, X509_STORE_get1_all_certs +X509_STORE_get1_objects, X509_STORE_get0_objects, X509_STORE_get1_all_certs \&\- X509_STORE setter and getter functions .SH SYNOPSIS .IX Header "SYNOPSIS" @@ -71,6 +71,7 @@ X509_STORE_get0_objects, X509_STORE_get1_all_certs \& \& X509_VERIFY_PARAM *X509_STORE_get0_param(const X509_STORE *xs); \& int X509_STORE_set1_param(X509_STORE *xs, const X509_VERIFY_PARAM *pm); +\& STACK_OF(X509_OBJECT) *X509_STORE_get1_objects(X509_STORE *xs); \& STACK_OF(X509_OBJECT) *X509_STORE_get0_objects(const X509_STORE *xs); \& STACK_OF(X509) *X509_STORE_get1_all_certs(X509_STORE *xs); .Ve @@ -82,9 +83,15 @@ X509_STORE_get0_objects, X509_STORE_get1_all_certs parameters for \fIxs\fR. The returned pointer must not be freed by the calling application .PP +\&\fBX509_STORE_get1_objects()\fR returns a snapshot of all objects in the store's X509 +cache. The cache contains \fBX509\fR and \fBX509_CRL\fR objects. The caller is +responsible for freeing the returned list. +.PP \&\fBX509_STORE_get0_objects()\fR retrieves an internal pointer to the store's X509 object cache. The cache contains \fBX509\fR and \fBX509_CRL\fR objects. The -returned pointer must not be freed by the calling application. +returned pointer must not be freed by the calling application. If the store is +shared across multiple threads, it is not safe to use the result of this +function. Use \fBX509_STORE_get1_objects()\fR instead, which avoids this problem. .PP \&\fBX509_STORE_get1_all_certs()\fR returns a list of all certificates in the store. The caller is responsible for freeing the returned list. @@ -95,6 +102,9 @@ The caller is responsible for freeing the returned list. .PP \&\fBX509_STORE_set1_param()\fR returns 1 for success and 0 for failure. .PP +\&\fBX509_STORE_get1_objects()\fR returns a pointer to a stack of the retrieved +objects on success, else NULL. +.PP \&\fBX509_STORE_get0_objects()\fR returns a pointer to a stack of \fBX509_OBJECT\fR. .PP \&\fBX509_STORE_get1_all_certs()\fR returns a pointer to a stack of the retrieved @@ -107,9 +117,10 @@ certificates on success, else NULL. \&\fBX509_STORE_get0_param\fR and \fBX509_STORE_get0_objects\fR were added in OpenSSL 1.1.0. \&\fBX509_STORE_get1_certs\fR was added in OpenSSL 3.0. +\&\fBX509_STORE_get1_objects\fR was added in OpenSSL 3.3. .SH COPYRIGHT .IX Header "COPYRIGHT" -Copyright 2016\-2020 The OpenSSL Project Authors. All Rights Reserved. +Copyright 2016\-2024 The OpenSSL Project Authors. All Rights Reserved. .PP Licensed under the Apache License 2.0 (the "License"). You may not use this file except in compliance with the License. You can obtain a copy |