mirror of
https://github.com/openssl/openssl.git
synced 2024-11-27 05:21:51 +08:00
correct example
Reviewed-by: Rich Salz <rsalz@openssl.org>
This commit is contained in:
parent
99dcd88035
commit
2fc52c912a
@ -34,7 +34,7 @@ them to suit its needs: for example to add a hostname check.
|
||||
Check hostname matches "www.foo.com" in peer certificate:
|
||||
|
||||
X509_VERIFY_PARAM *vpm = SSL_get0_param(ssl);
|
||||
X509_VERIFY_PARAM_set1_host(vpm, "www.foo.com");
|
||||
X509_VERIFY_PARAM_set1_host(vpm, "www.foo.com", 0);
|
||||
|
||||
=head1 RETURN VALUES
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user