Daniel Ottiger 6e1879dfae
ssl-verify-host: fix verifying ip addresses containing zero's (#732)
* ssl-verify-host: fix verifying ip addresses containing zero's

If the subject alternate name contained an ip address with an zero
(like 10.42.0.1) it could not successfully verify.
It is because in c++ strings are null-terminated
and therefore strlen(name) would return a wrong result.
As I can not see why we can not trust the length returned by openssl,
lets drop this check.

* ssl-verify-host: add test case

lets try to validate against 127.0.0.1

Co-authored-by: Daniel Ottiger <daniel.ottiger@ch.schindler.com>
2020-11-02 20:27:34 -05:00
..
2020-03-09 23:59:00 -04:00
2020-01-16 23:28:11 -05:00
2020-01-21 09:09:05 -05:00
2019-11-29 17:07:51 -05:00
2019-11-29 17:07:51 -05:00
2017-12-29 22:34:59 -05:00
2020-07-29 23:12:05 -04:00
2013-07-04 18:18:52 -04:00