mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-01-26 17:42:49 +01:00
Force client haveDH to true in wolfSSL_set_options. haveDH won't be set to true on the client as the server side is what calls DH param generation APIs which set this to true, but we still want the client to support DH cipher suites if enabled. This matches behavior from InitSSL_EitherSide.
This commit is contained in:
10
src/ssl.c
10
src/ssl.c
@@ -17128,7 +17128,15 @@ long wolfSSL_set_options(WOLFSSL* ssl, long op)
|
||||
if (AllocateSuites(ssl) != 0)
|
||||
return 0;
|
||||
if (!ssl->suites->setSuites) {
|
||||
InitSuites(ssl->suites, ssl->version, keySz, haveRSA,
|
||||
/* Client side won't set DH params, so it needs haveDH set to TRUE. */
|
||||
if (ssl->options.side == WOLFSSL_CLIENT_END)
|
||||
InitSuites(ssl->suites, ssl->version, keySz, haveRSA,
|
||||
havePSK, TRUE, ssl->options.haveECDSAsig,
|
||||
ssl->options.haveECC, TRUE, ssl->options.haveStaticECC,
|
||||
ssl->options.useAnon,
|
||||
TRUE, TRUE, TRUE, TRUE, ssl->options.side);
|
||||
else
|
||||
InitSuites(ssl->suites, ssl->version, keySz, haveRSA,
|
||||
havePSK, ssl->options.haveDH, ssl->options.haveECDSAsig,
|
||||
ssl->options.haveECC, TRUE, ssl->options.haveStaticECC,
|
||||
ssl->options.useAnon,
|
||||
|
||||
Reference in New Issue
Block a user