Commit d9d6801
David Cooper
Avoid ClientHello size bug
As described in testssl#1113, some servers will fail if the length of the ClientHello message is 522, 778, 1034, ... bytes (i.e., if length mod 256 = 10) or 526, 782, 1038, ... bytes (i.e., if length mod 256 = 14). This commit avoid this issue for normal testing by adding a 5-byte padding extension to the message if the length would otherwise be one of these lengths.1 parent 23df63e commit d9d6801
1 file changed
Lines changed: 8 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11827 | 11827 | | |
11828 | 11828 | | |
11829 | 11829 | | |
| 11830 | + | |
11830 | 11831 | | |
11831 | 11832 | | |
11832 | 11833 | | |
| |||
11841 | 11842 | | |
11842 | 11843 | | |
11843 | 11844 | | |
| 11845 | + | |
| 11846 | + | |
| 11847 | + | |
| 11848 | + | |
| 11849 | + | |
| 11850 | + | |
| 11851 | + | |
11844 | 11852 | | |
11845 | 11853 | | |
11846 | 11854 | | |
11847 | 11855 | | |
11848 | 11856 | | |
11849 | | - | |
11850 | 11857 | | |
11851 | 11858 | | |
11852 | 11859 | | |
| |||
0 commit comments