Blue:
- dnsmasq_audit: dnsmasq.conf and dnsmasq.d/*.conf: wildcard or missing
interface restriction, no bind-interfaces, missing bogus-priv or
domain-needed and world-writable files.
- nsswitch_audit: nsswitch.conf: compat/NIS in passwd/group/shadow, direct
LDAP without sssd, hosts lookups that skip files, world-writable.
- jenkins_audit: config.xml from three usual homes: security disabled, an
unsecured authorization strategy, missing CSRF protection, a fixed agent
port and a world-writable file.
Red:
- tls_hostname_check: one handshake with the name as SNI; matches SAN DNS
names (one-label wildcard), IP SANs and falls back to CN only when no DNS
SAN exists.
extract_first_pem returns 0 on success, not a length; the first version
tested > 0 and always reported 'no certificate presented'. tools_proto.c
also needed <arpa/inet.h> for inet_pton.
Tests with dnsmasq/nsswitch/Jenkins trees and a certificate carrying
other.test, *.wild.test and IP:127.0.0.1. 1011 checks, ASan suite green,
analyze clean, release-check green including distcheck 1.46.0.