Commit 81f25a6
committed
Mitigate inconsistent test results for ROBOT
As reported a longer while back in #2083 there were trailing bytes
when receiving a TLS alert by the ROBOT check.
This PR corrects and thus normalizes the length of the TLS alert message to the
correct value, supposed the length in the TLS alart is two bytes and it is an
TLS alert.
Also this PR now uses a separate variable for the timeout. In 2ce0110 the timeout
was changed by mistake as MAX_WAITSOCK was reduced from 10 to 5. For this check it
is still 5 which seemed fine (TBC). Using a separate global variable however may offer
some possibility for tuning the check when the latency to the target is high.1 parent 26e90d4 commit 81f25a6
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
| 212 | + | |
212 | 213 | | |
213 | 214 | | |
214 | 215 | | |
| |||
20669 | 20670 | | |
20670 | 20671 | | |
20671 | 20672 | | |
20672 | | - | |
| 20673 | + | |
20673 | 20674 | | |
20674 | 20675 | | |
20675 | 20676 | | |
| |||
20839 | 20840 | | |
20840 | 20841 | | |
20841 | 20842 | | |
| 20843 | + | |
| 20844 | + | |
| 20845 | + | |
| 20846 | + | |
| 20847 | + | |
20842 | 20848 | | |
20843 | 20849 | | |
20844 | 20850 | | |
| |||
0 commit comments