Skip to content

Commit 04e85eb

Browse files
committed
removed reference to backwards compatiblity mode in client hello
1 parent d6d17c8 commit 04e85eb

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

TLS-Core/src/main/java/de/rub/nds/tlsattacker/core/protocol/preparator/ClientHelloPreparator.java

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public void prepareHandshakeMessageContents() {
5757
}
5858
if (!chooser.getConfig().getHighestProtocolVersion().isSSL()
5959
|| (chooser.getConfig().getHighestProtocolVersion().isSSL() && chooser.getConfig()
60-
.isAddExtensionsInSSL())) {
60+
.isAddExtensionsInSSL())) {
6161
prepareExtensions();
6262
prepareExtensionLength();
6363
}
@@ -76,14 +76,10 @@ protected void prepareRandom() {
7676

7777
private void prepareSessionID() {
7878
if (chooser.getConfig().getHighestProtocolVersion().isTLS13()) {
79-
if (chooser.getConfig().getTls13BackwardsCompatibilityMode()) {
80-
if (chooser.getContext().getServerSessionId() == null) {
81-
msg.setSessionId(chooser.getClientSessionId());
82-
} else {
83-
msg.setSessionId(chooser.getServerSessionId());
84-
}
79+
if (chooser.getContext().getServerSessionId() == null) {
80+
msg.setSessionId(chooser.getClientSessionId());
8581
} else {
86-
msg.setSessionId(new byte[0]);
82+
msg.setSessionId(chooser.getServerSessionId());
8783
}
8884
} else {
8985
if (chooser.getContext().getServerSessionId() == null) {

0 commit comments

Comments
 (0)