mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-08-20 21:43:22 +02:00
InitSuitesHashSigAlgo added the ecdsa_sha1 and rsa_pkcs1_sha1 signature schemes to the signature_algorithms list based only on the build flags, ignoring the negotiated protocol version. Because that list is also the set a peer's signatures are validated against, any build with old TLS compiled in advertised and accepted SHA-1 handshake and certificate signatures for TLS 1.2, which RFC 9155 deprecates. Gate the SHA-1 schemes on the negotiated version so they are offered only for TLS 1.0 and 1.1 handshakes, unless WOLFSSL_ALLOW_TLS_SHA1 is defined to opt back in. The same gate excludes them for TLS 1.3, as required by RFC 8446. Fixes F-6991.
Before creating any new configure files (.conf) read the CONF_FILES_README.md