Skip to content

Commit 43df11c

Browse files
committed
Add gate on having DH
1 parent 8c1298a commit 43df11c

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/internal.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6929,7 +6929,7 @@ int SetSSL_CTX(WOLFSSL* ssl, WOLFSSL_CTX* ctx, int writeDup)
69296929
ssl->options.minDowngrade = ctx->minDowngrade;
69306930
ssl->options.haveRSA = ctx->haveRSA;
69316931
ssl->options.haveDH = ctx->haveDH;
6932-
#ifndef NO_CERTS
6932+
#if !defined(NO_CERTS) && !defined(NO_DH)
69336933
/* Its possible that DH algorithm parameters were set in the ctx, recalc
69346934
* cipher suites. */
69356935
if (ssl->options.haveDH && ctx->serverDH_P.buffer != NULL &&
@@ -6951,7 +6951,7 @@ int SetSSL_CTX(WOLFSSL* ssl, WOLFSSL_CTX* ctx, int writeDup)
69516951
ssl->options.haveStaticECC, ssl->options.useAnon,
69526952
TRUE, TRUE, TRUE, TRUE, ssl->options.side);
69536953
}
6954-
#endif /* ! NO_CERTS */
6954+
#endif /* !NO_CERTS && !NO_DH */
69556955
ssl->options.haveECDSAsig = ctx->haveECDSAsig;
69566956
ssl->options.haveECC = ctx->haveECC;
69576957
ssl->options.haveStaticECC = ctx->haveStaticECC;

0 commit comments

Comments
 (0)