BUG/MINOR: ssl: verifyhost is case sensitive
authorWilliam Lallemand <wlallemand@haproxy.com>
Mon, 14 Sep 2020 13:20:10 +0000 (15:20 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Mon, 14 Sep 2020 13:20:10 +0000 (15:20 +0200)
commit2d6fd0a90df8d3ab77f13c59e5f1efa3d271c42c
treefe42e080d44291130fa808ed1d6198bdd612426b
parent441b6c31e9d8e45ecf09379ff7494743889f36fd
BUG/MINOR: ssl: verifyhost is case sensitive

In bug #835, @arjenzorgdoc reported that the verifyhost option on the
server line is case-sensitive, that shouldn't be the case.

This patch fixes the issue by replacing memcmp by strncasecmp and strcmp
by strcasecmp. The patch was suggested by @arjenzorgdoc.

This must be backported in all versions supporting the verifyhost
option.
src/ssl_sock.c