Skip to content

Commit 797a64c

Browse files
authored
Merge pull request #693 from RUB-NDS/jcommanderDoubleGeneralFix
removed general delegate from client and server command config as the…
2 parents 0ccceea + 130963c commit 797a64c

File tree

6 files changed

+2
-14
lines changed

6 files changed

+2
-14
lines changed

TLS-Client/src/main/java/de/rub/nds/tlsattacker/client/config/ClientCommandConfig.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@ public class ClientCommandConfig extends TLSDelegateConfig {
3737

3838
public static final String COMMAND = "client";
3939

40-
@ParametersDelegate
41-
private GeneralDelegate generalDelegate;
4240
@ParametersDelegate
4341
private CiphersuiteDelegate ciphersuiteDelegate;
4442
@ParametersDelegate
@@ -78,7 +76,6 @@ public class ClientCommandConfig extends TLSDelegateConfig {
7876

7977
public ClientCommandConfig(GeneralDelegate delegate) {
8078
super(delegate);
81-
generalDelegate = delegate;
8279
this.ciphersuiteDelegate = new CiphersuiteDelegate();
8380
this.maxFragmentLengthDelegate = new MaxFragmentLengthDelegate();
8481
this.ellipticCurveDelegate = new NamedGroupsDelegate();

TLS-Core/src/main/java/de/rub/nds/tlsattacker/core/config/delegate/ListDelegate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
public class ListDelegate extends Delegate {
2929

3030
// Setting help=true allows us to surpass any parameters marked as required.
31-
@Parameter(names = "-list", description = "Plot a list of available parameters", help = true, converter = ListDelegateConverter.class)
31+
@Parameter(names = "-list", description = "Plot a list of available parameters", converter = ListDelegateConverter.class)
3232
private ListDelegateType listDelegateType = null;
3333

3434
public ListDelegate() {

TLS-Core/src/main/java/de/rub/nds/tlsattacker/core/config/delegate/WorkflowInputDelegate.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
public class WorkflowInputDelegate extends Delegate {
1717

18-
@Parameter(names = "-workflow_input", help = true, description = "This parameter allows you to load the whole workflow trace from the specified XML configuration file")
18+
@Parameter(names = "-workflow_input", description = "This parameter allows you to load the whole workflow trace from the specified XML configuration file")
1919
private String workflowInput = null;
2020

2121
public WorkflowInputDelegate() {

TLS-Mitm/src/main/java/de/rub/nds/tlsattacker/mitm/config/MitmCommandConfig.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,6 @@ public class MitmCommandConfig extends TLSDelegateConfig {
3838

3939
public static final String COMMAND = "mitm";
4040

41-
@ParametersDelegate
42-
private GeneralDelegate generalDelegate;
4341
@ParametersDelegate
4442
private CiphersuiteDelegate ciphersuiteDelegate;
4543
@ParametersDelegate
@@ -77,7 +75,6 @@ public class MitmCommandConfig extends TLSDelegateConfig {
7775

7876
public MitmCommandConfig(GeneralDelegate delegate) {
7977
super(delegate);
80-
this.generalDelegate = delegate;
8178
this.ciphersuiteDelegate = new CiphersuiteDelegate();
8279
this.heartbeatDelegate = new HeartbeatDelegate();
8380
this.ellipticCurveDelegate = new NamedGroupsDelegate();

TLS-Server/src/main/java/de/rub/nds/tlsattacker/server/config/ServerCommandConfig.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,6 @@ public class ServerCommandConfig extends TLSDelegateConfig {
3636

3737
public static final String COMMAND = "server";
3838

39-
@ParametersDelegate
40-
private GeneralDelegate generalDelegate;
4139
@ParametersDelegate
4240
private CiphersuiteDelegate ciphersuiteDelegate;
4341
@ParametersDelegate
@@ -75,7 +73,6 @@ public class ServerCommandConfig extends TLSDelegateConfig {
7573

7674
public ServerCommandConfig(GeneralDelegate delegate) {
7775
super(delegate);
78-
this.generalDelegate = delegate;
7976
this.ciphersuiteDelegate = new CiphersuiteDelegate();
8077
this.heartbeatDelegate = new HeartbeatDelegate();
8178
this.ellipticCurveDelegate = new NamedGroupsDelegate();

TraceTool/src/main/java/de/rub/nds/tlsattacker/tracetool/config/TraceToolCommandConfig.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,6 @@ public class TraceToolCommandConfig extends TLSDelegateConfig {
3232

3333
public static final String COMMAND = "tracetool";
3434

35-
@ParametersDelegate
36-
private GeneralDelegate generalDelegate;
3735
@ParametersDelegate
3836
private ProtocolVersionDelegate protocolVersionDelegate;
3937
@ParametersDelegate
@@ -55,7 +53,6 @@ public class TraceToolCommandConfig extends TLSDelegateConfig {
5553

5654
public TraceToolCommandConfig(GeneralDelegate delegate) {
5755
super(delegate);
58-
this.generalDelegate = delegate;
5956
this.protocolVersionDelegate = new ProtocolVersionDelegate();
6057
this.workflowOutputDelegate = new WorkflowOutputDelegate();
6158
this.workflowInputDelegate = new WorkflowInputDelegate();

0 commit comments

Comments
 (0)