summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2024-03-06 10:07:47 +0000
committertb <>2024-03-06 10:07:47 +0000
commite3204c04867981f9f4572193a40d97169d797af1 (patch)
treefde6d3ffc369c4be86c5821fb3e33ef65c6c07d5
parent0160dc49308b21df484769143040e6eea24d7eeb (diff)
downloadopenbsd-e3204c04867981f9f4572193a40d97169d797af1.tar.gz
openbsd-e3204c04867981f9f4572193a40d97169d797af1.tar.bz2
openbsd-e3204c04867981f9f4572193a40d97169d797af1.zip
Clarify ownership in X509_STORE_add_lookup()
Whether an X509_LOOKUP with given method already exists or not, this API returns an internal pointer that must not be freed.
-rw-r--r--src/lib/libcrypto/man/X509_STORE_load_locations.37
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/libcrypto/man/X509_STORE_load_locations.3 b/src/lib/libcrypto/man/X509_STORE_load_locations.3
index f38eeb6671..b9ecbc3dad 100644
--- a/src/lib/libcrypto/man/X509_STORE_load_locations.3
+++ b/src/lib/libcrypto/man/X509_STORE_load_locations.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: X509_STORE_load_locations.3,v 1.10 2021/11/12 14:05:28 schwarze Exp $ 1.\" $OpenBSD: X509_STORE_load_locations.3,v 1.11 2024/03/06 10:07:47 tb Exp $
2.\" full merge up to: 2.\" full merge up to:
3.\" OpenSSL X509_STORE_add_cert b0edda11 Mar 20 13:00:17 2018 +0000 3.\" OpenSSL X509_STORE_add_cert b0edda11 Mar 20 13:00:17 2018 +0000
4.\" 4.\"
@@ -16,7 +16,7 @@
16.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 16.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
17.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 17.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
18.\" 18.\"
19.Dd $Mdocdate: November 12 2021 $ 19.Dd $Mdocdate: March 6 2024 $
20.Dt X509_STORE_LOAD_LOCATIONS 3 20.Dt X509_STORE_LOAD_LOCATIONS 3
21.Os 21.Os
22.Sh NAME 22.Sh NAME
@@ -122,7 +122,7 @@ already contains an
122.Vt X509_LOOKUP 122.Vt X509_LOOKUP
123object using the given 123object using the given
124.Fa method ; 124.Fa method ;
125if it does, no action occurs. 125if it does, the existing object is returned and no other action occurs.
126Otherwise, a new 126Otherwise, a new
127.Vt X509_LOOKUP 127.Vt X509_LOOKUP
128object is allocated, added, and returned. 128object is allocated, added, and returned.
@@ -148,6 +148,7 @@ In particular, parse errors or lack of memory can cause failure.
148returns the existing or new lookup object or 148returns the existing or new lookup object or
149.Dv NULL 149.Dv NULL
150on failure. 150on failure.
151This is an internal pointer that must not be freed.
151With LibreSSL, the only reason for failure is lack of memory. 152With LibreSSL, the only reason for failure is lack of memory.
152.Sh FILES 153.Sh FILES
153.Bl -tag -width Ds 154.Bl -tag -width Ds