mirror of
https://github.com/openssl/openssl.git
synced 2025-01-18 13:44:20 +08:00
Enable PSK if corresponding mask set.
Reviewed-by: Matt Caswell <matt@openssl.org>
This commit is contained in:
parent
fe5eef3a3b
commit
526f94ad68
@ -2112,6 +2112,12 @@ void ssl_set_masks(SSL *s, const SSL_CIPHER *cipher)
|
||||
mask_a |= SSL_aPSK;
|
||||
emask_k |= SSL_kPSK;
|
||||
emask_a |= SSL_aPSK;
|
||||
if (mask_k & SSL_kRSA)
|
||||
mask_k |= SSL_kRSAPSK;
|
||||
if (mask_k & SSL_kDHE)
|
||||
mask_k |= SSL_kDHEPSK;
|
||||
if (mask_k & SSL_kECDHE)
|
||||
mask_k |= SSL_kECDHEPSK;
|
||||
#endif
|
||||
|
||||
s->s3->tmp.mask_k = mask_k;
|
||||
|
Loading…
Reference in New Issue
Block a user