Commit e5acf5a
committed
verify_peer_identity: Do not pass the resolve flag to validate_hostname()
When acting as a relay (client), the certificate of the server we
are connecting to must match either the DNS name or IP address we
used. The names in the server's cert should be treated as untrusted
and not be resolved to IP addresses for matching. This matches the
existing behavior of the sudoers log client.
Thanks to Joshua Rogers for finding this.1 parent 2f4e05d commit e5acf5a
1 file changed
+4
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | | - | |
57 | | - | |
| 56 | + | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
| 98 | + | |
| 99 | + | |
105 | 100 | | |
106 | 101 | | |
107 | 102 | | |
| |||
0 commit comments