Commit eb168f2
fix: Fix a bug in tls1.3 code path (#4513)
* fix a bug in tls1.3 code path with unit test to verify the change
* modify comment on if block
* fix formatting to clang-format compatible
* reformat if() block to avoid unnecessarry computation
* free memory used for test
* add a check if tls1.3 is supported before running the test
* change s2n_config_is_encrypt_decrypt_key_available() return type to S2N_RESULT
* add null checks and reformat if() block for readability
* better comments and variable naming
* style fixes and add tls 1.3 verification
* use shorter function name
* modify test to fail on HS type assersion instead of during the HS
* use shorter variable name
Co-authored-by: Lindsay Stewart <[email protected]>
* address readability
* use shorter variable names
* address PR comment
* Update tests/unit/s2n_session_ticket_test.c
Co-authored-by: Lindsay Stewart <[email protected]>
* bail with proper error code
* fix err code
---------
Co-authored-by: Lindsay Stewart <[email protected]>1 parent 3d125a5 commit eb168f2
File tree
5 files changed
+86
-17
lines changed- tests/unit
- tls
- extensions
5 files changed
+86
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1348 | 1348 | | |
1349 | 1349 | | |
1350 | 1350 | | |
| 1351 | + | |
| 1352 | + | |
| 1353 | + | |
| 1354 | + | |
| 1355 | + | |
| 1356 | + | |
| 1357 | + | |
| 1358 | + | |
| 1359 | + | |
| 1360 | + | |
| 1361 | + | |
| 1362 | + | |
| 1363 | + | |
| 1364 | + | |
| 1365 | + | |
| 1366 | + | |
| 1367 | + | |
| 1368 | + | |
| 1369 | + | |
| 1370 | + | |
| 1371 | + | |
| 1372 | + | |
| 1373 | + | |
| 1374 | + | |
| 1375 | + | |
| 1376 | + | |
| 1377 | + | |
| 1378 | + | |
| 1379 | + | |
| 1380 | + | |
| 1381 | + | |
| 1382 | + | |
| 1383 | + | |
| 1384 | + | |
| 1385 | + | |
| 1386 | + | |
| 1387 | + | |
| 1388 | + | |
| 1389 | + | |
| 1390 | + | |
| 1391 | + | |
| 1392 | + | |
| 1393 | + | |
| 1394 | + | |
| 1395 | + | |
| 1396 | + | |
| 1397 | + | |
| 1398 | + | |
| 1399 | + | |
| 1400 | + | |
| 1401 | + | |
| 1402 | + | |
| 1403 | + | |
| 1404 | + | |
| 1405 | + | |
| 1406 | + | |
| 1407 | + | |
| 1408 | + | |
| 1409 | + | |
| 1410 | + | |
| 1411 | + | |
| 1412 | + | |
| 1413 | + | |
| 1414 | + | |
| 1415 | + | |
| 1416 | + | |
| 1417 | + | |
| 1418 | + | |
1351 | 1419 | | |
1352 | 1420 | | |
1353 | 1421 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
66 | | - | |
| 66 | + | |
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1053 | 1053 | | |
1054 | 1054 | | |
1055 | 1055 | | |
1056 | | - | |
| 1056 | + | |
1057 | 1057 | | |
1058 | 1058 | | |
1059 | 1059 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
610 | 610 | | |
611 | 611 | | |
612 | 612 | | |
613 | | - | |
| 613 | + | |
614 | 614 | | |
| 615 | + | |
| 616 | + | |
615 | 617 | | |
616 | 618 | | |
617 | | - | |
618 | | - | |
| 619 | + | |
| 620 | + | |
619 | 621 | | |
620 | 622 | | |
621 | | - | |
| 623 | + | |
622 | 624 | | |
623 | 625 | | |
624 | 626 | | |
625 | | - | |
| 627 | + | |
626 | 628 | | |
627 | 629 | | |
628 | 630 | | |
629 | 631 | | |
630 | | - | |
| 632 | + | |
631 | 633 | | |
632 | 634 | | |
633 | 635 | | |
634 | | - | |
| 636 | + | |
635 | 637 | | |
636 | 638 | | |
637 | 639 | | |
| |||
868 | 870 | | |
869 | 871 | | |
870 | 872 | | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
871 | 878 | | |
872 | 879 | | |
873 | | - | |
874 | | - | |
875 | | - | |
876 | | - | |
877 | 880 | | |
878 | | - | |
879 | | - | |
| 881 | + | |
880 | 882 | | |
881 | 883 | | |
882 | | - | |
883 | 884 | | |
884 | 885 | | |
885 | 886 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
0 commit comments