From: William Lallemand Date: Fri, 8 Dec 2023 10:55:15 +0000 (+0100) Subject: BUILD: ssl: update types in wolfssl cert selection callback X-Git-Tag: v2.9.1~13 X-Git-Url: http://git.haproxy.org/?a=commitdiff_plain;h=9d49a82291b11bdb53b382128a6bc2cac104c3a5;p=haproxy-2.9.git BUILD: ssl: update types in wolfssl cert selection callback The types have changed in the PR for the wolfSSL_get_sigalg_info() function, let's update them. Must be backported in 2.9. (cherry picked from commit dbe9cea35b7a43a4907fa726e7a8afc31a6fbee3) Signed-off-by: Christopher Faulet --- diff --git a/src/ssl_sock.c b/src/ssl_sock.c index 46bfb4b..4dc14df 100644 --- a/src/ssl_sock.c +++ b/src/ssl_sock.c @@ -2859,8 +2859,8 @@ static int ssl_sock_switchctx_wolfSSL_cbk(WOLFSSL* ssl, void* arg) has_rsa_sig = 0; } for (idx = 0; idx < hashSigAlgoSz; idx += 2) { - enum wc_HashType hashAlgo; - enum Key_Sum sigAlgo; + int hashAlgo; + int sigAlgo; wolfSSL_get_sigalg_info(hashSigAlgo[idx+0], hashSigAlgo[idx+1], &hashAlgo, &sigAlgo);