summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto
diff options
context:
space:
mode:
authorschwarze <>2020-09-17 08:04:22 +0000
committerschwarze <>2020-09-17 08:04:22 +0000
commit2dce98682ff8b7337bc6963a61185ea7cf5142b8 (patch)
tree82c0977a100728275a863a8c4b426e8e27d815fc /src/lib/libcrypto
parenteca320a8712112c5711439902e616353d0069121 (diff)
downloadopenbsd-2dce98682ff8b7337bc6963a61185ea7cf5142b8.tar.gz
openbsd-2dce98682ff8b7337bc6963a61185ea7cf5142b8.tar.bz2
openbsd-2dce98682ff8b7337bc6963a61185ea7cf5142b8.zip
Install the new page SSL_set1_host(3), link to it from relevant places,
and add two other .Xrs that might help readers find their way. Update the merge notices of all files touched and merge a few trivial changes from the OpenSSL 1.1.1 branch. OK tb@
Diffstat (limited to 'src/lib/libcrypto')
-rw-r--r--src/lib/libcrypto/man/X509_VERIFY_PARAM_set_flags.39
-rw-r--r--src/lib/libcrypto/man/X509_check_host.315
2 files changed, 14 insertions, 10 deletions
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 5e45278604..33cca3b4b3 100644
--- a/src/lib/libcrypto/man/X509_VERIFY_PARAM_set_flags.3
+++ b/src/lib/libcrypto/man/X509_VERIFY_PARAM_set_flags.3
@@ -1,6 +1,6 @@
1.\" $OpenBSD: X509_VERIFY_PARAM_set_flags.3,v 1.14 2018/04/07 13:57:43 jmc Exp $ 1.\" $OpenBSD: X509_VERIFY_PARAM_set_flags.3,v 1.15 2020/09/17 08:04:22 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 48e5119a Jan 19 10:49:22 2018 +0100 3.\" selective merge up to: OpenSSL 6328d367 Jul 4 21:58:30 2020 +0200
4.\" 4.\"
5.\" This file is a derived work. 5.\" This file is a derived work.
6.\" The changes are covered by the following Copyright and license: 6.\" The changes are covered by the following Copyright and license:
@@ -68,7 +68,7 @@
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: April 7 2018 $ 71.Dd $Mdocdate: September 17 2020 $
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
@@ -337,7 +337,7 @@ in a chain.
337.Fn X509_VERIFY_PARAM_set1_host 337.Fn X509_VERIFY_PARAM_set1_host
338sets the expected DNS hostname to 338sets the expected DNS hostname to
339.Fa name 339.Fa name
340clearing any previously specified host name or names. 340clearing any previously specified hostname or names.
341If 341If
342.Fa name 342.Fa name
343is 343is
@@ -693,6 +693,7 @@ SSL_CTX_set1_param(ctx, param);
693X509_VERIFY_PARAM_free(param); 693X509_VERIFY_PARAM_free(param);
694.Ed 694.Ed
695.Sh SEE ALSO 695.Sh SEE ALSO
696.Xr SSL_set1_host 3 ,
696.Xr SSL_set1_param 3 , 697.Xr SSL_set1_param 3 ,
697.Xr X509_check_host 3 , 698.Xr X509_check_host 3 ,
698.Xr X509_STORE_CTX_set0_param 3 , 699.Xr X509_STORE_CTX_set0_param 3 ,
diff --git a/src/lib/libcrypto/man/X509_check_host.3 b/src/lib/libcrypto/man/X509_check_host.3
index a2c91af1ad..dbc56c0d21 100644
--- a/src/lib/libcrypto/man/X509_check_host.3
+++ b/src/lib/libcrypto/man/X509_check_host.3
@@ -1,5 +1,6 @@
1.\" $OpenBSD: X509_check_host.3,v 1.5 2019/08/23 12:23:39 schwarze Exp $ 1.\" $OpenBSD: X509_check_host.3,v 1.6 2020/09/17 08:04:22 schwarze Exp $
2.\" full merge up to: OpenSSL 6738bf14 Feb 13 12:51:29 2018 +0000 2.\" full merge up to: OpenSSL a09e4d24 Jun 12 01:56:31 2014 -0400
3.\" selective merge up to: OpenSSL 6328d367 Jul 4 21:58:30 2020 +0200
3.\" 4.\"
4.\" This file was written by Florian Weimer <fweimer@redhat.com> and 5.\" This file was written by Florian Weimer <fweimer@redhat.com> and
5.\" Viktor Dukhovni <openssl-users@dukhovni.org>. 6.\" Viktor Dukhovni <openssl-users@dukhovni.org>.
@@ -50,7 +51,7 @@
50.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED 51.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
51.\" OF THE POSSIBILITY OF SUCH DAMAGE. 52.\" OF THE POSSIBILITY OF SUCH DAMAGE.
52.\" 53.\"
53.Dd $Mdocdate: August 23 2019 $ 54.Dd $Mdocdate: September 17 2020 $
54.Dt X509_CHECK_HOST 3 55.Dt X509_CHECK_HOST 3
55.Os 56.Os
56.Sh NAME 57.Sh NAME
@@ -91,13 +92,13 @@
91.Fc 92.Fc
92.Sh DESCRIPTION 93.Sh DESCRIPTION
93The certificate matching functions are used to check whether a 94The certificate matching functions are used to check whether a
94certificate matches a given host name, email address, or IP address. 95certificate matches a given hostname, email address, or IP address.
95The validity of the certificate and its trust level has to be checked by 96The validity of the certificate and its trust level has to be checked by
96other means. 97other means.
97.Pp 98.Pp
98.Fn X509_check_host 99.Fn X509_check_host
99checks if the certificate Subject Alternative Name (SAN) or Subject 100checks if the certificate Subject Alternative Name (SAN) or Subject
100CommonName (CN) matches the specified host name, which must be encoded 101CommonName (CN) matches the specified hostname, which must be encoded
101in the preferred name syntax described in section 3.5 of RFC 1034. 102in the preferred name syntax described in section 3.5 of RFC 1034.
102By default, wildcards are supported and they match only in the 103By default, wildcards are supported and they match only in the
103left-most label; they may match part of that label with an 104left-most label; they may match part of that label with an
@@ -234,9 +235,11 @@ returns -2 if the provided
234.Fa name 235.Fa name
235contains embedded NUL bytes. 236contains embedded NUL bytes.
236.Sh SEE ALSO 237.Sh SEE ALSO
238.Xr SSL_set1_host 3 ,
237.Xr X509_EXTENSION_new 3 , 239.Xr X509_EXTENSION_new 3 ,
238.Xr X509_get1_email 3 , 240.Xr X509_get1_email 3 ,
239.Xr X509_new 3 241.Xr X509_new 3 ,
242.Xr X509_VERIFY_PARAM_set1_host 3
240.Sh HISTORY 243.Sh HISTORY
241These functions first appeared in OpenSSL 1.0.2 244These functions first appeared in OpenSSL 1.0.2
242and have been available since 245and have been available since