diff options
author | tb <> | 2024-03-04 09:24:07 +0000 |
---|---|---|
committer | tb <> | 2024-03-04 09:24:07 +0000 |
commit | c127570e7e2a5f4b372620aa6ec3550d123e4092 (patch) | |
tree | 07c833528dc3a89128b9eb224daaa841819f7f3f /src/lib | |
parent | 52bd5e2011b5fc1bd95e4c6de4876ea0f2ec0d96 (diff) | |
download | openbsd-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.3 | 42 |
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 |
182 | returns an internal pointer to the verification parameter object | 187 | returns an internal pointer to the verification parameter object |
183 | contained in the | 188 | contained in the |
189 | .Fa store . | ||
190 | The returned pointer must not be freed by the calling application. | ||
191 | .Pp | ||
192 | .Fn X509_STORE_get1_objects | ||
193 | returns a newly allocated stack containing | ||
194 | the certificates, revocation lists, and private keys in | ||
184 | .Fa store , | 195 | .Fa store , |
196 | as well as cached objects added by | ||
197 | .Xr X509_LOOKUP_hash_dir 3 . | ||
198 | The caller must release the result with | ||
199 | .Xr sk_pop_free 3 | ||
200 | and | ||
201 | .Xr X509_OBJECT_free 3 | ||
202 | when done. | ||
203 | .Pp | ||
185 | .Fn X509_STORE_get0_objects | 204 | .Fn X509_STORE_get0_objects |
186 | to the stack of certificates, revocation lists, and private keys. | 205 | is a deprecated function returning an internal pointer to |
187 | The returned pointers must not be freed by the calling application. | 206 | the stack of certificates, revocation lists, and private keys contained in |
207 | .Fa store . | ||
208 | The returned pointer must not be modified or freed by the calling application. | ||
209 | This function is not thread-safe. | ||
210 | If | ||
211 | .Fa store | ||
212 | is shared across multiple threads, callers cannot safely inspect the result of | ||
213 | this function, because another thread may have concurrently added to it. | ||
214 | In particular, | ||
215 | .Xr X509_LOOKUP_hash_dir 3 | ||
216 | treats this list as a cache and may add to it in the course of certificate | ||
217 | verification. | ||
188 | .Pp | 218 | .Pp |
189 | .Fn X509_STORE_get_ex_new_index | 219 | .Fn X509_STORE_get_ex_new_index |
190 | returns a new index or \-1 on failure. | 220 | returns 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 |
233 | first appeared in OpenSSL 1.1.0 and have been available since | 263 | first appeared in OpenSSL 1.1.0 and have been available since |
234 | .Ox 6.3 . | 264 | .Ox 6.3 . |
265 | .Pp | ||
266 | X509_STORE_get1_objects | ||
267 | first appeared in BoringSSL and has been available since | ||
268 | .Ox 7.5 . | ||