REGTESTS: ssl: Fix ssl_errors test for OpenSSL v3
authorRemi Tricot-Le Breton <rlebreton@haproxy.com>
Mon, 11 Oct 2021 13:34:13 +0000 (15:34 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Wed, 13 Oct 2021 09:28:10 +0000 (11:28 +0200)
commitd266cdad2ad6e13e60f39c5200f42ce7c5c27716
tree7817ce73e75108d2160e62892bda5a24538b245e
parentb01179aa92f1b5d1b82b0d42cfbedd60b27e99d3
REGTESTS: ssl: Fix ssl_errors test for OpenSSL v3

The OpenSSL error codes for the same errors are not consistent between
OpenSSL versions. The ssl_errors test needs to be modified to only take
into account a fixed part of those error codes.
This patch focuses on the reason part of the error code by applying a
mask on the error code (whose size varies depending on the lib version).
reg-tests/ssl/ssl_errors.vtc