Skip to content
Snippets Groups Projects
Commit 08a2b378 authored by =?UTF-8?q?Samuel=20Lor=C3=A9tan?='s avatar =?UTF-8?q?Samuel=20Lor=C3=A9tan?= Committed by Andy Green
Browse files

openssl: Allow IP-based SAN in automatic hostname check

With OpenSSL, `X509_VERIFY_PARAM_set1_host` only checks matching hostnames and alternative names that are domain-based.

This change tries calling `X509_VERIFY_PARAM_set1_ip_asc` first, which attempts to parse the hostname as an IP address (v4 or v6). If this fails, it'll fall back to the current `X509_VERIFY_PARAM_set1_host` behavior.
parent 51a1b5eb
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment