summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/man
diff options
context:
space:
mode:
authorschwarze <>2021-10-18 14:46:37 +0000
committerschwarze <>2021-10-18 14:46:37 +0000
commitc20556b36f9b080fd212baf56e6df9a9644e9310 (patch)
treed845191436a5d263855f76d6a7b8f4dfac3ed0d4 /src/lib/libcrypto/man
parentfef307262c3c123f4c49e4825988bc76d9183683 (diff)
downloadopenbsd-c20556b36f9b080fd212baf56e6df9a9644e9310.tar.gz
openbsd-c20556b36f9b080fd212baf56e6df9a9644e9310.tar.bz2
openbsd-c20556b36f9b080fd212baf56e6df9a9644e9310.zip
split seven functions out of the page X509_VERIFY_PARAM_set_flags(3), which
is becoming excessively long, into a new page X509_VERIFY_PARAM_new(3); no content change
Diffstat (limited to 'src/lib/libcrypto/man')
-rw-r--r--src/lib/libcrypto/man/Makefile3
-rw-r--r--src/lib/libcrypto/man/X509_STORE_CTX_set_flags.35
-rw-r--r--src/lib/libcrypto/man/X509_STORE_set1_param.35
-rw-r--r--src/lib/libcrypto/man/X509_VERIFY_PARAM_new.3158
-rw-r--r--src/lib/libcrypto/man/X509_VERIFY_PARAM_set_flags.3138
5 files changed, 175 insertions, 134 deletions
diff --git a/src/lib/libcrypto/man/Makefile b/src/lib/libcrypto/man/Makefile
index 1b838a599c..3b13fc912a 100644
--- a/src/lib/libcrypto/man/Makefile
+++ b/src/lib/libcrypto/man/Makefile
@@ -1,4 +1,4 @@
1# $OpenBSD: Makefile,v 1.190 2021/08/06 21:50:54 schwarze Exp $ 1# $OpenBSD: Makefile,v 1.191 2021/10/18 14:46:37 schwarze Exp $
2 2
3.include <bsd.own.mk> 3.include <bsd.own.mk>
4 4
@@ -308,6 +308,7 @@ MAN= \
308 X509_STORE_set_verify_cb_func.3 \ 308 X509_STORE_set_verify_cb_func.3 \
309 X509_STORE_set1_param.3 \ 309 X509_STORE_set1_param.3 \
310 X509_TRUST_set.3 \ 310 X509_TRUST_set.3 \
311 X509_VERIFY_PARAM_new.3 \
311 X509_VERIFY_PARAM_set_flags.3 \ 312 X509_VERIFY_PARAM_set_flags.3 \
312 X509_add1_trust_object.3 \ 313 X509_add1_trust_object.3 \
313 X509_check_ca.3 \ 314 X509_check_ca.3 \
diff --git a/src/lib/libcrypto/man/X509_STORE_CTX_set_flags.3 b/src/lib/libcrypto/man/X509_STORE_CTX_set_flags.3
index 7247927385..bf78fc78ef 100644
--- a/src/lib/libcrypto/man/X509_STORE_CTX_set_flags.3
+++ b/src/lib/libcrypto/man/X509_STORE_CTX_set_flags.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: X509_STORE_CTX_set_flags.3,v 1.3 2021/07/25 14:05:03 schwarze Exp $ 1.\" $OpenBSD: X509_STORE_CTX_set_flags.3,v 1.4 2021/10/18 14:46:37 schwarze Exp $
2.\" full merge up to: OpenSSL aae41f8c Jun 25 09:47:15 2015 +0100 2.\" full merge up to: OpenSSL aae41f8c Jun 25 09:47:15 2015 +0100
3.\" selective merge up to: OpenSSL 24a535ea Sep 22 13:14:20 2020 +0100 3.\" selective merge up to: OpenSSL 24a535ea Sep 22 13:14:20 2020 +0100
4.\" 4.\"
@@ -67,7 +67,7 @@
67.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 67.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
68.\" OF THE POSSIBILITY OF SUCH DAMAGE. 68.\" OF THE POSSIBILITY OF SUCH DAMAGE.
69.\" 69.\"
70.Dd $Mdocdate: July 25 2021 $ 70.Dd $Mdocdate: October 18 2021 $
71.Dt X509_STORE_CTX_SET_FLAGS 3 71.Dt X509_STORE_CTX_SET_FLAGS 3
72.Os 72.Os
73.Sh NAME 73.Sh NAME
@@ -393,6 +393,7 @@ The other functions provide no diagnostics.
393.Xr X509_STORE_new 3 , 393.Xr X509_STORE_new 3 ,
394.Xr X509_STORE_set1_param 3 , 394.Xr X509_STORE_set1_param 3 ,
395.Xr X509_verify_cert 3 , 395.Xr X509_verify_cert 3 ,
396.Xr X509_VERIFY_PARAM_new 3 ,
396.Xr X509_VERIFY_PARAM_set_flags 3 397.Xr X509_VERIFY_PARAM_set_flags 3
397.Sh HISTORY 398.Sh HISTORY
398.Fn X509_STORE_CTX_set_depth 399.Fn X509_STORE_CTX_set_depth
diff --git a/src/lib/libcrypto/man/X509_STORE_set1_param.3 b/src/lib/libcrypto/man/X509_STORE_set1_param.3
index b44293966b..13caccb3c0 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.17 2021/07/31 14:54:34 schwarze Exp $ 1.\" $OpenBSD: X509_STORE_set1_param.3,v 1.18 2021/10/18 14:46:37 schwarze 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: July 31 2021 $ 20.Dd $Mdocdate: October 18 2021 $
21.Dt X509_STORE_SET1_PARAM 3 21.Dt X509_STORE_SET1_PARAM 3
22.Os 22.Os
23.Sh NAME 23.Sh NAME
@@ -197,6 +197,7 @@ on failure.
197.Xr X509_STORE_CTX_set0_param 3 , 197.Xr X509_STORE_CTX_set0_param 3 ,
198.Xr X509_STORE_load_locations 3 , 198.Xr X509_STORE_load_locations 3 ,
199.Xr X509_STORE_new 3 , 199.Xr X509_STORE_new 3 ,
200.Xr X509_VERIFY_PARAM_new 3 ,
200.Xr X509_VERIFY_PARAM_set_flags 3 201.Xr X509_VERIFY_PARAM_set_flags 3
201.Sh HISTORY 202.Sh HISTORY
202.Fn X509_STORE_add_cert 203.Fn X509_STORE_add_cert
diff --git a/src/lib/libcrypto/man/X509_VERIFY_PARAM_new.3 b/src/lib/libcrypto/man/X509_VERIFY_PARAM_new.3
new file mode 100644
index 0000000000..05a36a4f79
--- /dev/null
+++ b/src/lib/libcrypto/man/X509_VERIFY_PARAM_new.3
@@ -0,0 +1,158 @@
1.\" $OpenBSD: X509_VERIFY_PARAM_new.3,v 1.1 2021/10/18 14:46:37 schwarze Exp $
2.\"
3.\" Copyright (c) 2018, 2021 Ingo Schwarze <schwarze@openbsd.org>
4.\"
5.\" Permission to use, copy, modify, and distribute this software for any
6.\" purpose with or without fee is hereby granted, provided that the above
7.\" copyright notice and this permission notice appear in all copies.
8.\"
9.\" THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10.\" WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11.\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12.\" ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13.\" WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14.\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15.\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16.\"
17.Dd $Mdocdate: October 18 2021 $
18.Dt X509_VERIFY_PARAM_NEW 3
19.Os
20.Sh NAME
21.Nm X509_VERIFY_PARAM_new ,
22.Nm X509_VERIFY_PARAM_free ,
23.Nm X509_VERIFY_PARAM_add0_table ,
24.Nm X509_VERIFY_PARAM_lookup ,
25.Nm X509_VERIFY_PARAM_get_count ,
26.Nm X509_VERIFY_PARAM_get0 ,
27.Nm X509_VERIFY_PARAM_table_cleanup
28.Nd X509 verification parameter object
29.Sh SYNOPSIS
30.In openssl/x509_vfy.h
31.Ft X509_VERIFY_PARAM *
32.Fo X509_VERIFY_PARAM_new
33.Fa void
34.Fc
35.Ft void
36.Fo X509_VERIFY_PARAM_free
37.Fa "X509_VERIFY_PARAM *param"
38.Fc
39.Ft int
40.Fo X509_VERIFY_PARAM_add0_table
41.Fa "X509_VERIFY_PARAM *param"
42.Fc
43.Ft const X509_VERIFY_PARAM *
44.Fo X509_VERIFY_PARAM_lookup
45.Fa "const char *name"
46.Fc
47.Ft int
48.Fo X509_VERIFY_PARAM_get_count
49.Fa void
50.Fc
51.Ft const X509_VERIFY_PARAM *
52.Fo X509_VERIFY_PARAM_get0
53.Fa "int id"
54.Fc
55.Ft void
56.Fo X509_VERIFY_PARAM_table_cleanup
57.Fa void
58.Fc
59.Sh DESCRIPTION
60.Fn X509_VERIFY_PARAM_new
61allocates and initializes an empty
62.Vt X509_VERIFY_PARAM
63object.
64.Pp
65.Fn X509_VERIFY_PARAM_free
66clears all data contained in
67.Fa param
68and releases all memory used by it.
69If
70.Fa param
71is a
72.Dv NULL
73pointer, no action occurs.
74.Pp
75.Fn X509_VERIFY_PARAM_add0_table
76adds
77.Fa param
78to a static list of
79.Vt X509_VERIFY_PARAM
80objects maintained by the library.
81This function is extremely dangerous because contrary to the name
82of the function, if the list already contains an object that happens
83to have the same name, that old object is not only silently removed
84from the list, but also silently freed, which may silently invalidate
85various pointers existing elsewhere in the program.
86.Pp
87.Fn X509_VERIFY_PARAM_lookup
88searches this list for an object of the given
89.Fa name .
90If no match is found, the predefined objects built-in to the library
91are also inspected.
92.Pp
93.Fn X509_VERIFY_PARAM_get_count
94returns the sum of the number of objects on this list and the number
95of predefined objects built-in to the library.
96Note that this is not necessarily the total number of
97.Vt X509_VERIFY_PARAM
98objects existing in the program because there may be additional such
99objects that were never added to the list.
100.Pp
101.Fn X509_VERIFY_PARAM_get0
102accesses predefined and user-defined objects using
103.Fa id
104as an index, useful for looping over objects without knowing their names.
105An argument less than the number of predefined objects selects
106one of the predefined objects; a higher argument selects an object
107from the list.
108.Pp
109.Fn X509_VERIFY_PARAM_table_cleanup
110deletes all objects from this list.
111It is extremely dangerous because it also invalidates all data that
112was contained in all objects that were on the list and because it
113frees all these objects, which may invalidate various pointers
114existing elsewhere in the program.
115.Sh RETURN VALUES
116.Fn X509_VERIFY_PARAM_new
117returns a pointer to the new object, or
118.Dv NULL
119on allocation failure.
120.Pp
121.Fn X509_VERIFY_PARAM_add0_table
122returns 1 for success or 0 for failure.
123.Pp
124.Fn X509_VERIFY_PARAM_lookup
125and
126.Fn X509_VERIFY_PARAM_get0
127return a pointer to an existing built-in or user-defined object, or
128.Dv NULL
129if no object with the given
130.Fa name
131is found, or if
132.Fa id
133is at least
134.Fn X509_VERIFY_PARAM_get_count .
135.Pp
136.Fn X509_VERIFY_PARAM_get_count
137returns a number of objects.
138.Sh SEE ALSO
139.Xr SSL_set1_param 3 ,
140.Xr X509_STORE_CTX_set0_param 3 ,
141.Xr X509_STORE_set1_param 3 ,
142.Xr X509_verify_cert 3 ,
143.Xr X509_VERIFY_PARAM_set_flags 3
144.Sh HISTORY
145.Fn X509_VERIFY_PARAM_new ,
146.Fn X509_VERIFY_PARAM_free ,
147.Fn X509_VERIFY_PARAM_add0_table ,
148.Fn X509_VERIFY_PARAM_lookup ,
149and
150.Fn X509_VERIFY_PARAM_table_cleanup
151first appeared in OpenSSL 0.9.8 and have been available since
152.Ox 4.5 .
153.Pp
154.Fn X509_VERIFY_PARAM_get_count
155and
156.Fn X509_VERIFY_PARAM_get0
157first appeared in OpenSSL 1.0.2 and have been available since
158.Ox 6.3 .
diff --git a/src/lib/libcrypto/man/X509_VERIFY_PARAM_set_flags.3 b/src/lib/libcrypto/man/X509_VERIFY_PARAM_set_flags.3
index ea3c867b8b..a90fe6ea84 100644
--- a/src/lib/libcrypto/man/X509_VERIFY_PARAM_set_flags.3
+++ b/src/lib/libcrypto/man/X509_VERIFY_PARAM_set_flags.3
@@ -1,4 +1,4 @@
1.\" $OpenBSD: X509_VERIFY_PARAM_set_flags.3,v 1.17 2021/07/23 16:43:56 schwarze Exp $ 1.\" $OpenBSD: X509_VERIFY_PARAM_set_flags.3,v 1.18 2021/10/18 14:46:37 schwarze Exp $
2.\" full merge up to: OpenSSL d33def66 Feb 9 14:17:13 2016 -0500 2.\" full merge up to: OpenSSL d33def66 Feb 9 14:17:13 2016 -0500
3.\" selective merge up to: OpenSSL 24a535ea Sep 22 13:14:20 2020 +0100 3.\" selective merge up to: OpenSSL 24a535ea Sep 22 13:14:20 2020 +0100
4.\" 4.\"
@@ -68,12 +68,10 @@
68.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 68.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
69.\" OF THE POSSIBILITY OF SUCH DAMAGE. 69.\" OF THE POSSIBILITY OF SUCH DAMAGE.
70.\" 70.\"
71.Dd $Mdocdate: July 23 2021 $ 71.Dd $Mdocdate: October 18 2021 $
72.Dt X509_VERIFY_PARAM_SET_FLAGS 3 72.Dt X509_VERIFY_PARAM_SET_FLAGS 3
73.Os 73.Os
74.Sh NAME 74.Sh NAME
75.Nm X509_VERIFY_PARAM_new ,
76.Nm X509_VERIFY_PARAM_free ,
77.Nm X509_VERIFY_PARAM_get0_name , 75.Nm X509_VERIFY_PARAM_get0_name ,
78.Nm X509_VERIFY_PARAM_set1_name , 76.Nm X509_VERIFY_PARAM_set1_name ,
79.Nm X509_VERIFY_PARAM_set_flags , 77.Nm X509_VERIFY_PARAM_set_flags ,
@@ -92,23 +90,10 @@
92.Nm X509_VERIFY_PARAM_get0_peername , 90.Nm X509_VERIFY_PARAM_get0_peername ,
93.Nm X509_VERIFY_PARAM_set1_email , 91.Nm X509_VERIFY_PARAM_set1_email ,
94.Nm X509_VERIFY_PARAM_set1_ip , 92.Nm X509_VERIFY_PARAM_set1_ip ,
95.Nm X509_VERIFY_PARAM_set1_ip_asc , 93.Nm X509_VERIFY_PARAM_set1_ip_asc
96.Nm X509_VERIFY_PARAM_add0_table ,
97.Nm X509_VERIFY_PARAM_lookup ,
98.Nm X509_VERIFY_PARAM_get_count ,
99.Nm X509_VERIFY_PARAM_get0 ,
100.Nm X509_VERIFY_PARAM_table_cleanup
101.Nd X509 verification parameters 94.Nd X509 verification parameters
102.Sh SYNOPSIS 95.Sh SYNOPSIS
103.In openssl/x509_vfy.h 96.In openssl/x509_vfy.h
104.Ft X509_VERIFY_PARAM *
105.Fo X509_VERIFY_PARAM_new
106.Fa void
107.Fc
108.Ft void
109.Fo X509_VERIFY_PARAM_free
110.Fa "X509_VERIFY_PARAM *param"
111.Fc
112.Ft const char * 97.Ft const char *
113.Fo X509_VERIFY_PARAM_get0_name 98.Fo X509_VERIFY_PARAM_get0_name
114.Fa "const X509_VERIFY_PARAM *param" 99.Fa "const X509_VERIFY_PARAM *param"
@@ -204,46 +189,11 @@
204.Fa "X509_VERIFY_PARAM *param" 189.Fa "X509_VERIFY_PARAM *param"
205.Fa "const char *ipasc" 190.Fa "const char *ipasc"
206.Fc 191.Fc
207.Ft int
208.Fo X509_VERIFY_PARAM_add0_table
209.Fa "X509_VERIFY_PARAM *param"
210.Fc
211.Ft const X509_VERIFY_PARAM *
212.Fo X509_VERIFY_PARAM_lookup
213.Fa "const char *name"
214.Fc
215.Ft int
216.Fo X509_VERIFY_PARAM_get_count
217.Fa void
218.Fc
219.Ft const X509_VERIFY_PARAM *
220.Fo X509_VERIFY_PARAM_get0
221.Fa "int id"
222.Fc
223.Ft void
224.Fo X509_VERIFY_PARAM_table_cleanup
225.Fa void
226.Fc
227.Sh DESCRIPTION 192.Sh DESCRIPTION
228These functions manipulate an 193These functions manipulate an
229.Vt X509_VERIFY_PARAM 194.Vt X509_VERIFY_PARAM
230object associated with a certificate verification operation. 195object associated with a certificate verification operation.
231.Pp 196.Pp
232.Fn X509_VERIFY_PARAM_new
233allocates and initializes an empty
234.Vt X509_VERIFY_PARAM
235object.
236.Pp
237.Fn X509_VERIFY_PARAM_free
238clears all data contained in
239.Fa param
240and releases all memory used by it.
241If
242.Fa param
243is a
244.Dv NULL
245pointer, no action occurs.
246.Pp
247.Fn X509_VERIFY_PARAM_get0_name 197.Fn X509_VERIFY_PARAM_get0_name
248returns the name of the given 198returns the name of the given
249.Fa param 199.Fa param
@@ -458,62 +408,15 @@ The condensed "::" notation is supported for IPv6 addresses.
458will fail if 408will fail if
459.Fa ipasc 409.Fa ipasc
460is unparsable. 410is unparsable.
461.Pp
462.Fn X509_VERIFY_PARAM_add0_table
463adds
464.Fa param
465to a static list of
466.Vt X509_VERIFY_PARAM
467objects maintained by the library.
468This function is extremely dangerous because contrary to the name
469of the function, if the list already contains an object that happens
470to have the same name, that old object is not only silently removed
471from the list, but also silently freed, which may silently invalidate
472various pointers existing elsewhere in the program.
473.Pp
474.Fn X509_VERIFY_PARAM_lookup
475searches this list for an object of the given
476.Fa name .
477If no match is found, the predefined objects built-in to the library
478are also inspected.
479.Pp
480.Fn X509_VERIFY_PARAM_get_count
481returns the sum of the number of objects on this list and the number
482of predefined objects built-in to the library.
483Note that this is not necessarily the total number of
484.Vt X509_VERIFY_PARAM
485objects existing in the program because there may be additional such
486objects that were never added to the list.
487.Pp
488.Fn X509_VERIFY_PARAM_get0
489accesses predefined and user-defined objects using
490.Fa id
491as an index, useful for looping over objects without knowing their names.
492An argument less than the number of predefined objects selects
493one of the predefined objects; a higher argument selects an object
494from the list.
495.Pp
496.Fn X509_VERIFY_PARAM_table_cleanup
497deletes all objects from this list.
498It is extremely dangerous because it also invalidates all data that
499was contained in all objects that were on the list and because it
500frees all these objects, which may invalidate various pointers
501existing elsewhere in the program.
502.Sh RETURN VALUES 411.Sh RETURN VALUES
503.Fn X509_VERIFY_PARAM_new
504returns a pointer to the new object, or
505.Dv NULL
506on allocation failure.
507.Pp
508.Fn X509_VERIFY_PARAM_set1_name , 412.Fn X509_VERIFY_PARAM_set1_name ,
509.Fn X509_VERIFY_PARAM_set_flags , 413.Fn X509_VERIFY_PARAM_set_flags ,
510.Fn X509_VERIFY_PARAM_clear_flags , 414.Fn X509_VERIFY_PARAM_clear_flags ,
511.Fn X509_VERIFY_PARAM_set_purpose , 415.Fn X509_VERIFY_PARAM_set_purpose ,
512.Fn X509_VERIFY_PARAM_set_trust , 416.Fn X509_VERIFY_PARAM_set_trust ,
513.Fn X509_VERIFY_PARAM_add0_policy , 417.Fn X509_VERIFY_PARAM_add0_policy ,
514.Fn X509_VERIFY_PARAM_set1_policies ,
515and 418and
516.Fn X509_VERIFY_PARAM_add0_table 419.Fn X509_VERIFY_PARAM_set1_policies
517return 1 for success or 0 for failure. 420return 1 for success or 0 for failure.
518.Pp 421.Pp
519.Fn X509_VERIFY_PARAM_set1_host , 422.Fn X509_VERIFY_PARAM_set1_host ,
@@ -521,7 +424,7 @@ return 1 for success or 0 for failure.
521.Fn X509_VERIFY_PARAM_set1_email , 424.Fn X509_VERIFY_PARAM_set1_email ,
522.Fn X509_VERIFY_PARAM_set1_ip , 425.Fn X509_VERIFY_PARAM_set1_ip ,
523and 426and
524.Fn X509_VERIFY_PARAM_set1_ip_asc , 427.Fn X509_VERIFY_PARAM_set1_ip_asc
525return 1 for success or 0 for failure. 428return 1 for success or 0 for failure.
526A failure from these routines will poison 429A failure from these routines will poison
527the 430the
@@ -543,21 +446,6 @@ return pointers to strings that are only valid
543during the lifetime of the given 446during the lifetime of the given
544.Fa param 447.Fa param
545object and that must not be freed by the application program. 448object and that must not be freed by the application program.
546.Pp
547.Fn X509_VERIFY_PARAM_lookup
548and
549.Fn X509_VERIFY_PARAM_get0
550return a pointer to an existing built-in or user-defined object, or
551.Dv NULL
552if no object with the given
553.Fa name
554is found, or if
555.Fa id
556is at least
557.Fn X509_VERIFY_PARAM_get_count .
558.Pp
559.Fn X509_VERIFY_PARAM_get_count
560returns a number of objects.
561.Sh VERIFICATION FLAGS 449.Sh VERIFICATION FLAGS
562The verification flags consists of zero or more of the following 450The verification flags consists of zero or more of the following
563flags OR'ed together. 451flags OR'ed together.
@@ -702,12 +590,9 @@ X509_VERIFY_PARAM_free(param);
702.Xr SSL_set1_host 3 , 590.Xr SSL_set1_host 3 ,
703.Xr SSL_set1_param 3 , 591.Xr SSL_set1_param 3 ,
704.Xr X509_check_host 3 , 592.Xr X509_check_host 3 ,
705.Xr X509_STORE_CTX_set0_param 3 , 593.Xr X509_verify_cert 3 ,
706.Xr X509_STORE_set1_param 3 , 594.Xr X509_VERIFY_PARAM_new 3
707.Xr X509_verify_cert 3
708.Sh HISTORY 595.Sh HISTORY
709.Fn X509_VERIFY_PARAM_new ,
710.Fn X509_VERIFY_PARAM_free ,
711.Fn X509_VERIFY_PARAM_set1_name , 596.Fn X509_VERIFY_PARAM_set1_name ,
712.Fn X509_VERIFY_PARAM_set_flags , 597.Fn X509_VERIFY_PARAM_set_flags ,
713.Fn X509_VERIFY_PARAM_set_purpose , 598.Fn X509_VERIFY_PARAM_set_purpose ,
@@ -716,11 +601,8 @@ X509_VERIFY_PARAM_free(param);
716.Fn X509_VERIFY_PARAM_add0_policy , 601.Fn X509_VERIFY_PARAM_add0_policy ,
717.Fn X509_VERIFY_PARAM_set1_policies , 602.Fn X509_VERIFY_PARAM_set1_policies ,
718.Fn X509_VERIFY_PARAM_set_depth , 603.Fn X509_VERIFY_PARAM_set_depth ,
719.Fn X509_VERIFY_PARAM_get_depth ,
720.Fn X509_VERIFY_PARAM_add0_table ,
721.Fn X509_VERIFY_PARAM_lookup ,
722and 604and
723.Fn X509_VERIFY_PARAM_table_cleanup 605.Fn X509_VERIFY_PARAM_get_depth
724first appeared in OpenSSL 0.9.8. 606first appeared in OpenSSL 0.9.8.
725.Fn X509_VERIFY_PARAM_clear_flags 607.Fn X509_VERIFY_PARAM_clear_flags
726and 608and
@@ -736,10 +618,8 @@ All these functions have been available since
736.Fn X509_VERIFY_PARAM_get0_peername , 618.Fn X509_VERIFY_PARAM_get0_peername ,
737.Fn X509_VERIFY_PARAM_set1_email , 619.Fn X509_VERIFY_PARAM_set1_email ,
738.Fn X509_VERIFY_PARAM_set1_ip , 620.Fn X509_VERIFY_PARAM_set1_ip ,
739.Fn X509_VERIFY_PARAM_set1_ip_asc ,
740.Fn X509_VERIFY_PARAM_get_count ,
741and 621and
742.Fn X509_VERIFY_PARAM_get0 622.Fn X509_VERIFY_PARAM_set1_ip_asc
743first appeared in OpenSSL 1.0.2 and have been available since 623first appeared in OpenSSL 1.0.2 and have been available since
744.Ox 6.3 . 624.Ox 6.3 .
745.Sh BUGS 625.Sh BUGS