BUG/MINOR: ssl: Use 'date' instead of 'now' in ocsp stapling callback

In the OCSP response callback, instead of using the actual date of the
system, the scheduler's 'now' timer is used when checking a response's
validity.

This patch can be backported to all stable versions.

(cherry picked from commit 8c20a74c90964b7bd76144fe8dbde15f227d9a04)
[cf: applied in src/ssl_sock.c]
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit dbec9cad895ff5fe00470dceda1d1e3abeeeae2c)
Signed-off-by: Willy Tarreau <w@1wt.eu>
(cherry picked from commit 3109c7b1187c3a1a85382acfa16c6577a0d1d352)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
(cherry picked from commit 1a071cf398c62cbb63f98ce9a36c6a0e48469aab)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
1 file changed