Skip to content

Commit 374f1ba

Browse files
committed
Adjusted record bytes to yield a content error based on length
1 parent ce9c769 commit 374f1ba

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

TLS-Scanner-Core/src/test/java/de/rub/nds/tlsscanner/core/vector/response/FingerprintCheckerTest.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -379,8 +379,7 @@ public static Collection<Object[]> generateData() {
379379

380380
// generate clientHelloRecord with different ContentType & different Content
381381
Record clientHelloRecordDiffContentTypeWithPriority = parseRecord(ProtocolMessageType.APPLICATION_DATA,
382-
ProtocolVersion.TLS10.getValue(), 512, ArrayConverter.hexStringToByteArray(
383-
"1603010200010001fc03036ced07c5f0707d08d6c98ab375b523236492233a56eaec0d8feb2565ba7c337720c6b3ba7f6fdf5c643a038d40b56a8db014a6c90359432f3ccbb6db40fa76a9200022130113031302c02bc02fcca9cca8c02cc030c00ac009c013c014009c009d002f0035010001910000001a00180000157777772e7363686e6569657266616374732e636f6d00170000ff01000100000a000e000c001d00170018001901000101000b00020100002300000010000e000c02683208687474702f312e310005000501000000000022000a000804030503060302030033006b0069001d00204ca75275f38541b0628d64892200b8b184c7b7fd836b4c8c9b3124e753d7577a00170041040c6eae5febeb82f27d09c5cb7155682da96bf0863aeaff721f556885790a3819449702afd594b8c088aa1ea4effaf210867a0c0e430ad460ffe16847b6d1cbc4002b00050403040303000d0018001604030503060308040805080604010501060102030201002d00020101001c0002400100150081000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"));
382+
ProtocolVersion.TLS10.getValue(), 512, ArrayConverter.hexStringToByteArray("00"));
384383

385384
List<AbstractRecord> recordListTestRecordContentTypeWithPriority = new LinkedList<>();
386385
EqualityError expectedResultRecordContentTypeWithPriority;
@@ -408,8 +407,7 @@ public static Collection<Object[]> generateData() {
408407

409408
// generate ClientHelloRecord with different Version & different Content
410409
Record clientHelloRecordDiffVersionWithPriority = parseRecord(ProtocolMessageType.HANDSHAKE,
411-
ProtocolVersion.TLS12.getValue(), 512, ArrayConverter.hexStringToByteArray(
412-
"1603010200010001fc03036ced07c5f0707d08d6c98ab375b523236492233a56eaec0d8feb2565ba7c337720c6b3ba7f6fdf5c643a038d40b56a8db014a6c90359432f3ccbb6db40fa76a9200022130113031302c02bc02fcca9cca8c02cc030c00ac009c013c014009c009d002f0035010001910000001a00180000157777772e7363686e6569657266616374732e636f6d00170000ff01000100000a000e000c001d00170018001901000101000b00020100002300000010000e000c02683208687474702f312e310005000501000000000022000a000804030503060302030033006b0069001d00204ca75275f38541b0628d64892200b8b184c7b7fd836b4c8c9b3124e753d7577a00170041040c6eae5febeb82f27d09c5cb7155682da96bf0863aeaff721f556885790a3819449702afd594b8c088aa1ea4effaf210867a0c0e430ad460ffe16847b6d1cbc4002b00050403040303000d0018001604030503060308040805080604010501060102030201002d00020101001c0002400100150081000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"));
410+
ProtocolVersion.TLS12.getValue(), 512, ArrayConverter.hexStringToByteArray("00"));
413411

414412
List<AbstractRecord> recordListTestRecordVersionWithPriority = new LinkedList<>();
415413
EqualityError expectedResultRecordVersionWithPriority;

0 commit comments

Comments
 (0)