Skip to content

Comments

recipes/70-test_ssl{cbcpadding,extension,records}: make it work w/fragmentation.#5975

Closed
dot-asm wants to merge 7 commits intoopenssl:masterfrom
dot-asm:TLSProxy-fragmentation
Closed

recipes/70-test_ssl{cbcpadding,extension,records}: make it work w/fragmentation.#5975
dot-asm wants to merge 7 commits intoopenssl:masterfrom
dot-asm:TLSProxy-fragmentation

Conversation

@dot-asm
Copy link
Contributor

@dot-asm dot-asm commented Apr 16, 2018

This fixes only those tests that were failing when network data was
fragmented. Remaining ones might succeed for "wrong reasons". Bunch
of tests have to fail to be considered successful and when data is
fragmented they might fail for reasons other than originally intended.

make test TESTS=70 works even with 1-byte fragmentation...

Checklist
  • documentation is added or updated
  • tests are added or updated

Andy Polyakov added 4 commits April 16, 2018 22:54
(and resolve uninitialized variable warning).
…gmentation.

This fixes only those tests that were failing when network data was
fragmented. Remaining ones might succeed for "wrong reasons". Bunch
of tests have to fail to be considered successful and when data is
fragmented they might fail for reasons other than originally intended.
}

{
my $sent_corrupted_payload;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use the state feature instead.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Like that?

}

{
my $sent_unsolisited_extension;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use the state feature instead.

}

{
my $added_record;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use the state feature instead.

@bernd-edlinger
Copy link
Member

Have you actually ever observed such short fragments?
On windows the local connection uses an MTU of 1460 bytes.
Linux transfers even >64K in one chunk.

@dot-asm
Copy link
Contributor Author

dot-asm commented Apr 17, 2018

Have you actually ever observed such short fragments?

Of course not. It's just [artificial] 1-byte fragmentation is meaningful thing to test. Because it works as insurance that there are no unexpected surprises when fragmentation happen to coincide with record boundaries.

On related note, to question of 0e3ecae vs. c53c2fe. 1-byte fragmentation makes data flow equivalent to the latter, i.e. forwarding complete records as they become available...

levitte pushed a commit that referenced this pull request Apr 18, 2018
levitte pushed a commit that referenced this pull request Apr 18, 2018
levitte pushed a commit that referenced this pull request Apr 18, 2018
(resolve uninitialized variable warning and harmonize output).

Reviewed-by: Richard Levitte <[email protected]>
(Merged from #5975)
levitte pushed a commit that referenced this pull request Apr 18, 2018
…gmentation.

This fixes only those tests that were failing when network data was
fragmented. Remaining ones might succeed for "wrong reasons". Bunch
of tests have to fail to be considered successful and when data is
fragmented they might fail for reasons other than originally intended.

Reviewed-by: Richard Levitte <[email protected]>
(Merged from #5975)
levitte pushed a commit that referenced this pull request Apr 18, 2018
s_server -rev emits info output on stderr, i.e. unbufferred, which
risks intermixing with output from TLSProxy itself on non-line
boundaries, which in turn is confusing to TAP parser.

Reviewed-by: Richard Levitte <[email protected]>
(Merged from #5975)
@dot-asm dot-asm closed this Apr 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants