Skip to content

Commit d45e42e

Browse files
committed
keySz is only in Buffers if NO_CERTS not defined.
1 parent 6385999 commit d45e42e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/internal.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6929,6 +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
69326933
/* Its possible that algorithm parameters were set in the ctx (ie: DH),
69336934
* recalculate cipher suites. */
69346935
if (ssl->options.haveDH) {
@@ -6949,6 +6950,7 @@ int SetSSL_CTX(WOLFSSL* ssl, WOLFSSL_CTX* ctx, int writeDup)
69496950
ssl->options.haveStaticECC, ssl->options.useAnon,
69506951
TRUE, TRUE, TRUE, TRUE, ssl->options.side);
69516952
}
6953+
#endif /* ! NO_CERTS */
69526954
ssl->options.haveECDSAsig = ctx->haveECDSAsig;
69536955
ssl->options.haveECC = ctx->haveECC;
69546956
ssl->options.haveStaticECC = ctx->haveStaticECC;

0 commit comments

Comments
 (0)