]> git.proxmox.com Git - pve-apiclient.git/commit
cert verification: trust openssl result if hostnames are verified
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 3 Dec 2020 15:00:00 +0000 (16:00 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 3 Dec 2020 15:06:33 +0000 (16:06 +0100)
commita1298cc2a5d5eb3586efaaf4bad25e17eedf4295
tree1599b425d28bcda9d0c36fe5d85204f1f350fbcc
parente02e35fde325855c6f1d0096f25b3b9c00cf5a1c
cert verification: trust openssl result if hostnames are verified

If we verified that the hostname matches the cert we can also trust
the openssl verification result.

We get the openssl result as first parameter[0].

[0]: https://metacpan.org/pod/IO::Socket::SSL#SSL_verify_callback

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
PVE/APIClient/LWP.pm