mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-01-27 20:52:20 +01:00
tls13: merge guarded code in a single section
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user