]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
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)
committerWilliam Lallemand <wlallemand@haproxy.com>
Fri, 8 Dec 2023 11:03:11 +0000 (12:03 +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.

src/ssl_sock.c

index 46bfb4bf45dc8d65c66f74fc1ab5a924bc0c8464..4dc14df012fdc0480d0458748fa51a4bfbbd1599 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);