diff options
author | Viktor Dukhovni <ietf-dane@dukhovni.org> | 2014-07-06 01:47:29 +1000 |
---|---|---|
committer | Viktor Dukhovni <ietf-dane@dukhovni.org> | 2014-07-06 01:50:50 +1000 |
commit | ced3d9158a7a8c676be504bb6cd3b5ffb7cc7f13 (patch) | |
tree | 5378db291b7a10706d1dcb3c25b92b54c7df2bec /apps | |
parent | 6e661d458f5aa8f52bf3d9098bd10025de5f08ea (diff) |
Set optional peername when X509_check_host() succeeds.
Pass address of X509_VERIFY_PARAM_ID peername to X509_check_host().
Document modified interface.
Diffstat (limited to 'apps')
-rw-r--r-- | apps/apps.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/apps.c b/apps/apps.c index 7e1cf9cba2..188b2373aa 100644 --- a/apps/apps.c +++ b/apps/apps.c @@ -2969,7 +2969,8 @@ void print_cert_checks(BIO *bio, X509 *x, if (checkhost) { BIO_printf(bio, "Hostname %s does%s match certificate\n", - checkhost, X509_check_host(x, checkhost, 0, 0) + checkhost, + X509_check_host(x, checkhost, 0, 0, NULL) ? "" : " NOT"); } |