Commit be979dd
BUG/MEDIUM: ssl: bad auth selection with TLS1.2 and WolfSSL
The ClientHello callback for WolfSSL introduced in haproxy 2.9, seems
not to behave correctly with TLSv1.2.
In TLSv1.2, this is the cipher that is used to chose the authentication algorithm
(ECDSA or RSA), however an SSL client can send a signature algorithm.
In TLSv1.3, the authentication is not part of the ciphersuites, and
is selected using the signature algorithm.
The mistake in the code is that the signature algorithm in TLSv1.2 are
overwritting the auth that was selected using the ciphers.
This must be backported as far as 2.9.
(cherry picked from commit 711338e)
Signed-off-by: Christopher Faulet <[email protected]>1 parent 3738434 commit be979dd
1 file changed
+17
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2564 | 2564 | | |
2565 | 2565 | | |
2566 | 2566 | | |
| 2567 | + | |
| 2568 | + | |
| 2569 | + | |
| 2570 | + | |
2567 | 2571 | | |
2568 | 2572 | | |
2569 | 2573 | | |
| |||
2572 | 2576 | | |
2573 | 2577 | | |
2574 | 2578 | | |
2575 | | - | |
| 2579 | + | |
| 2580 | + | |
| 2581 | + | |
2576 | 2582 | | |
2577 | | - | |
2578 | | - | |
2579 | | - | |
2580 | | - | |
2581 | | - | |
2582 | | - | |
2583 | | - | |
2584 | | - | |
| 2583 | + | |
| 2584 | + | |
| 2585 | + | |
2585 | 2586 | | |
2586 | | - | |
| 2587 | + | |
2587 | 2588 | | |
2588 | | - | |
2589 | | - | |
2590 | | - | |
2591 | | - | |
| 2589 | + | |
| 2590 | + | |
| 2591 | + | |
| 2592 | + | |
| 2593 | + | |
| 2594 | + | |
2592 | 2595 | | |
2593 | 2596 | | |
2594 | 2597 | | |
| |||
0 commit comments