summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authortb <>2024-04-14 10:56:18 +0000
committertb <>2024-04-14 10:56:18 +0000
commit2a667686dd0a84ce9249eddf1560739c48f1ed2a (patch)
treece0ec3bcdb949d10529eb4bf85579a3d3e470f46 /src/lib
parenta1c5ce1dff4bcab64c3cbc8319928ce5c6ce1b36 (diff)
downloadopenbsd-2a667686dd0a84ce9249eddf1560739c48f1ed2a.tar.gz
openbsd-2a667686dd0a84ce9249eddf1560739c48f1ed2a.tar.bz2
openbsd-2a667686dd0a84ce9249eddf1560739c48f1ed2a.zip
Remove documentation of no longer available API
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/man/X509_LOOKUP_new.389
1 files changed, 4 insertions, 85 deletions
diff --git a/src/lib/libcrypto/man/X509_LOOKUP_new.3 b/src/lib/libcrypto/man/X509_LOOKUP_new.3
index f368cbb606..964594cde6 100644
--- a/src/lib/libcrypto/man/X509_LOOKUP_new.3
+++ b/src/lib/libcrypto/man/X509_LOOKUP_new.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: X509_LOOKUP_new.3,v 1.9 2021/11/12 14:05:28 schwarze Exp $ 1.\" $OpenBSD: X509_LOOKUP_new.3,v 1.10 2024/04/14 10:56:18 tb Exp $
2.\" 2.\"
3.\" Copyright (c) 2021 Ingo Schwarze <schwarze@openbsd.org> 3.\" Copyright (c) 2021 Ingo Schwarze <schwarze@openbsd.org>
4.\" 4.\"
@@ -14,22 +14,15 @@
14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF 14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16.\" 16.\"
17.Dd $Mdocdate: November 12 2021 $ 17.Dd $Mdocdate: April 14 2024 $
18.Dt X509_LOOKUP_NEW 3 18.Dt X509_LOOKUP_NEW 3
19.Os 19.Os
20.Sh NAME 20.Sh NAME
21.Nm X509_LOOKUP_new ,
22.Nm X509_LOOKUP_free , 21.Nm X509_LOOKUP_free ,
23.Nm X509_LOOKUP_ctrl , 22.Nm X509_LOOKUP_ctrl ,
24.Nm X509_LOOKUP_add_dir , 23.Nm X509_LOOKUP_add_dir ,
25.Nm X509_LOOKUP_load_file , 24.Nm X509_LOOKUP_load_file ,
26.Nm X509_LOOKUP_add_mem , 25.Nm X509_LOOKUP_add_mem ,
27.Nm X509_LOOKUP_by_subject ,
28.Nm X509_LOOKUP_init ,
29.Nm X509_LOOKUP_shutdown ,
30.Nm X509_LOOKUP_by_issuer_serial ,
31.Nm X509_LOOKUP_by_fingerprint ,
32.Nm X509_LOOKUP_by_alias ,
33.Nm X509_get_default_cert_dir , 26.Nm X509_get_default_cert_dir ,
34.Nm X509_get_default_cert_file , 27.Nm X509_get_default_cert_file ,
35.Nm X509_get_default_cert_dir_env , 28.Nm X509_get_default_cert_dir_env ,
@@ -40,8 +33,6 @@
40.Nd certificate lookup object 33.Nd certificate lookup object
41.Sh SYNOPSIS 34.Sh SYNOPSIS
42.In openssl/x509_vfy.h 35.In openssl/x509_vfy.h
43.Ft X509_LOOKUP *
44.Fn X509_LOOKUP_new "X509_LOOKUP_METHOD *method"
45.Ft void 36.Ft void
46.Fn X509_LOOKUP_free "X509_LOOKUP *lookup" 37.Fn X509_LOOKUP_free "X509_LOOKUP *lookup"
47.Ft int 38.Ft int
@@ -70,41 +61,6 @@
70.Fa "const struct iovec *source" 61.Fa "const struct iovec *source"
71.Fa "long type" 62.Fa "long type"
72.Fc 63.Fc
73.Ft int
74.Fo X509_LOOKUP_by_subject
75.Fa "X509_LOOKUP *lookup"
76.Fa "X509_LOOKUP_TYPE type"
77.Fa "X509_NAME *name"
78.Fa "X509_OBJECT *object"
79.Fc
80.Ft int
81.Fn X509_LOOKUP_init "X509_LOOKUP *lookup"
82.Ft int
83.Fn X509_LOOKUP_shutdown "X509_LOOKUP *lookup"
84.Ft int
85.Fo X509_LOOKUP_by_issuer_serial
86.Fa "X509_LOOKUP *lookup"
87.Fa "X509_LOOKUP_TYPE type"
88.Fa "X509_NAME *name"
89.Fa "ASN1_INTEGER *serial"
90.Fa "X509_OBJECT *object"
91.Fc
92.Ft int
93.Fo X509_LOOKUP_by_fingerprint
94.Fa "X509_LOOKUP *lookup"
95.Fa "X509_LOOKUP_TYPE type"
96.Fa "const unsigned char *bytes"
97.Fa "int length"
98.Fa "X509_OBJECT *object"
99.Fc
100.Ft int
101.Fo X509_LOOKUP_by_alias
102.Fa "X509_LOOKUP *lookup"
103.Fa "X509_LOOKUP_TYPE type"
104.Fa "const char *string"
105.Fa "int length"
106.Fa "X509_OBJECT *object"
107.Fc
108.In openssl/x509.h 64.In openssl/x509.h
109.Ft const char * 65.Ft const char *
110.Fn X509_get_default_cert_dir void 66.Fn X509_get_default_cert_dir void
@@ -115,21 +71,11 @@
115.Ft const char * 71.Ft const char *
116.Fn X509_get_default_cert_file_env void 72.Fn X509_get_default_cert_file_env void
117.Sh DESCRIPTION 73.Sh DESCRIPTION
118.Fn X509_LOOKUP_new
119allocates a new, empty
120.Vt X509_LOOKUP
121object and associates it with the
122.Fa method
123which is a static object returned from either
124.Xr X509_LOOKUP_hash_dir 3
125or
126.Xr X509_LOOKUP_file 3
127or
128.Xr X509_LOOKUP_mem 3 .
129.Pp
130.Fn X509_LOOKUP_free 74.Fn X509_LOOKUP_free
75is a deprecated function that
131releases the memory used by 76releases the memory used by
132.Fa lookup . 77.Fa lookup .
78It is provided for compatibility only.
133If 79If
134.Fa lookup 80.Fa lookup
135is a 81is a
@@ -332,21 +278,7 @@ and the files are read with
332In case of success, the first match is returned in the 278In case of success, the first match is returned in the
333.Pf * Fa object 279.Pf * Fa object
334provided by the caller, overwriting any previous content. 280provided by the caller, overwriting any previous content.
335.Pp
336With LibreSSL,
337.Fn X509_LOOKUP_init ,
338.Fn X509_LOOKUP_shutdown ,
339.Fn X509_LOOKUP_by_issuer_serial ,
340.Fn X509_LOOKUP_by_fingerprint ,
341and
342.Fn X509_LOOKUP_by_alias
343have no effect.
344.Sh RETURN VALUES 281.Sh RETURN VALUES
345.Fn X509_LOOKUP_new
346returns the new object or
347.Dv NULL
348if memory allocation fails.
349.Pp
350.Fn X509_LOOKUP_ctrl 282.Fn X509_LOOKUP_ctrl
351returns 1 for success or 0 for failure. 283returns 1 for success or 0 for failure.
352With library implementations other than LibreSSL, 284With library implementations other than LibreSSL,
@@ -374,19 +306,6 @@ if no match is found, or if memory allocation fails.
374With library implementations other than LibreSSL, 306With library implementations other than LibreSSL,
375it might also return negative values for internal errors. 307it might also return negative values for internal errors.
376.Pp 308.Pp
377.Fn X509_LOOKUP_init
378and
379.Fn X509_LOOKUP_shutdown
380are supposed to return 1 for success and 0 for failure.
381With LibreSSL, they always return 1.
382.Pp
383With LibreSSL,
384.Fn X509_LOOKUP_by_issuer_serial ,
385.Fn X509_LOOKUP_by_fingerprint ,
386and
387.Fn X509_LOOKUP_by_alias
388always return 0.
389.Pp
390.Fn X509_get_default_cert_dir 309.Fn X509_get_default_cert_dir
391returns a pointer to the constant string 310returns a pointer to the constant string
392.Qq /etc/ssl/certs , 311.Qq /etc/ssl/certs ,