BUILD: ssl: update types in wolfssl cert selection callback
authorWilliam Lallemand <wlallemand@haproxy.com>
Fri, 8 Dec 2023 10:55:15 +0000 (11:55 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 8 Dec 2023 13:28:27 +0000 (14:28 +0100)
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 <cfaulet@haproxy.com>

src/ssl_sock.c

index 46bfb4b..4dc14df 100644 (file)
@@ -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);