File tree Expand file tree Collapse file tree 1 file changed +4
-8
lines changed
TLS-Core/src/main/java/de/rub/nds/tlsattacker/core/protocol/preparator Expand file tree Collapse file tree 1 file changed +4
-8
lines changed Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments