Skip to content

Commit 42ac7d1

Browse files
committed
Formatted and added constant
1 parent fd3a6f4 commit 42ac7d1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

TLS-Core/src/main/java/de/rub/nds/tlsattacker/core/certificate/CertificateKeyPair.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -174,6 +174,7 @@ private CertificateKeyType getPublicKeyType(Certificate cert) {
174174
case "1.2.840.113549.1.1.1":
175175
return CertificateKeyType.RSA;
176176
case "1.2.840.10045.2.1":
177+
case "1.2.840.10045.4.3.4":
177178
return CertificateKeyType.ECDSA;
178179
case "1.2.840.113549.1.3.1":
179180
return CertificateKeyType.DH;

TLS-Core/src/main/java/de/rub/nds/tlsattacker/core/constants/ClientCertificateType.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public enum ClientCertificateType {
2525
FORTEZZA_DMS_RESERVED((byte) 20),
2626
GOSTR34101994((byte) 21),
2727
GOSTR34102001((byte) 22),
28-
ECDSA_SIGN((byte) 64), //TODO Implement these
28+
ECDSA_SIGN((byte) 64), // TODO Implement these
2929
RSA_FIXED_ECDH((byte) 65),
3030
ECDSA_FIXED_ECDH((byte) 66),
3131
GOST_SIGN256((byte) 66),
@@ -62,6 +62,6 @@ public byte getValue() {
6262
}
6363

6464
public byte[] getArrayValue() {
65-
return new byte[]{value};
65+
return new byte[] { value };
6666
}
6767
}

0 commit comments

Comments
 (0)