tls13: merge guarded code in a single section

This commit is contained in:
Marco Oliverio
2026-01-05 09:04:36 +01:00
parent 80c1228a38
commit d9bba72b8c

View File

@@ -5744,15 +5744,13 @@ static int DoTls13EncryptedExtensions(WOLFSSL* ssl, const byte* input,
if (ext == NULL || !ext->val)
ssl->earlyData = no_early_data;
}
#endif
#ifdef WOLFSSL_EARLY_DATA
if (ssl->earlyData == no_early_data) {
ret = SetKeysSide(ssl, ENCRYPT_SIDE_ONLY);
if (ret != 0)
return ret;
}
#endif
#endif /* WOLFSSL_EARLY_DATA */
ssl->options.serverState = SERVER_ENCRYPTED_EXTENSIONS_COMPLETE;