Allow use of RSA-PSS certificates in TLS 1.2
Reviewed-by: Ben Kaduk <kaduk@mit.edu> (Merged from https://github.com/openssl/openssl/pull/4368)
This commit is contained in:
parent
b46867d771
commit
6aaa29fb35
@ -3090,9 +3090,15 @@ void ssl_set_masks(SSL *s)
|
|||||||
if (dh_tmp)
|
if (dh_tmp)
|
||||||
mask_k |= SSL_kDHE;
|
mask_k |= SSL_kDHE;
|
||||||
|
|
||||||
if (rsa_enc || rsa_sign) {
|
/*
|
||||||
|
* If we only have an RSA-PSS certificate allow RSA authentication
|
||||||
|
* if TLS 1.2 and peer supports it.
|
||||||
|
*/
|
||||||
|
|
||||||
|
if (rsa_enc || rsa_sign || (ssl_has_cert(s, SSL_PKEY_RSA_PSS_SIGN)
|
||||||
|
&& pvalid[SSL_PKEY_RSA_PSS_SIGN] & CERT_PKEY_EXPLICIT_SIGN
|
||||||
|
&& TLS1_get_version(s) == TLS1_2_VERSION))
|
||||||
mask_a |= SSL_aRSA;
|
mask_a |= SSL_aRSA;
|
||||||
}
|
|
||||||
|
|
||||||
if (dsa_sign) {
|
if (dsa_sign) {
|
||||||
mask_a |= SSL_aDSS;
|
mask_a |= SSL_aDSS;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user