提交 2b4418eb 编写于 作者: D Dr. Stephen Henson

Only allow PSS signatures with RSA keys and TLS 1.3

Reviewed-by: NRich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2324)
上级 f742cda8
......@@ -835,6 +835,9 @@ int tls12_check_peer_sigalg(SSL *s, uint16_t sig, EVP_PKEY *pkey)
/* Should never happen */
if (pkeyid == -1)
return -1;
/* Only allow PSS for TLS 1.3 */
if (SSL_IS_TLS13(s) && pkeyid == EVP_PKEY_RSA)
pkeyid = EVP_PKEY_RSA_PSS;
lu = tls1_lookup_sigalg(sig);
/*
* Check sigalgs is known and key type is consistent with signature:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册