mirror of
https://github.com/openssl/openssl.git
synced 2024-11-21 01:15:20 +08:00
Make auto DH work with DHEPSK
Reviewed-by: Matt Caswell <matt@openssl.org>
This commit is contained in:
parent
13be69f3e6
commit
adc5506adf
@ -4165,7 +4165,7 @@ DH *ssl_get_auto_dh(SSL *s)
|
||||
int dh_secbits = 80;
|
||||
if (s->cert->dh_tmp_auto == 2)
|
||||
return DH_get_1024_160();
|
||||
if (s->s3->tmp.new_cipher->algorithm_auth & SSL_aNULL) {
|
||||
if (s->s3->tmp.new_cipher->algorithm_auth & (SSL_aNULL | SSL_aPSK)) {
|
||||
if (s->s3->tmp.new_cipher->strength_bits == 256)
|
||||
dh_secbits = 128;
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user