Repository navigation
Commit c3a5517
committed
Document TLS 1.3 PSK callback default suite and tighten its test
Document in the four TLS 1.3 PSK callback setters that the callback may
leave the cipher name NULL, in which case WOLFSSL_DEF_PSK_CIPHER is used,
and that a key length of 0 means no PSK. On the server, a non-zero key
with no name is accepted and the non-TLS 1.3 server callback is skipped.
In test_tls13_psk_cb_no_cipher_name, compare the negotiated suite with
WOLFSSL_DEF_PSK_CIPHER and drop the cipher list restriction so the test
follows an overridden default. Pin the zero length key case to
PSK_KEY_ERROR, or to WOLFSSL_ERROR_WANT_READ when OPENSSL_EXTRA or
WOLFSSL_PSK_ONE_ID lets the ClientHello go out.1 parent 593adbd commit c3a5517
4 files changed
Lines changed: 36 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13053 | 13053 | | |
13054 | 13054 | | |
13055 | 13055 | | |
13056 | | - | |
| 13056 | + | |
13057 | 13057 | | |
13058 | 13058 | | |
13059 | 13059 | | |
| |||
13075 | 13075 | | |
13076 | 13076 | | |
13077 | 13077 | | |
13078 | | - | |
| 13078 | + | |
13079 | 13079 | | |
13080 | 13080 | | |
13081 | 13081 | | |
| |||
13097 | 13097 | | |
13098 | 13098 | | |
13099 | 13099 | | |
13100 | | - | |
| 13100 | + | |
13101 | 13101 | | |
13102 | 13102 | | |
13103 | 13103 | | |
| |||
13119 | 13119 | | |
13120 | 13120 | | |
13121 | 13121 | | |
13122 | | - | |
| 13122 | + | |
13123 | 13123 | | |
13124 | 13124 | | |
13125 | 13125 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17472 | 17472 | | |
17473 | 17473 | | |
17474 | 17474 | | |
| 17475 | + | |
| 17476 | + | |
| 17477 | + | |
| 17478 | + | |
17475 | 17479 | | |
17476 | 17480 | | |
17477 | 17481 | | |
| |||
17500 | 17504 | | |
17501 | 17505 | | |
17502 | 17506 | | |
| 17507 | + | |
| 17508 | + | |
| 17509 | + | |
| 17510 | + | |
17503 | 17511 | | |
17504 | 17512 | | |
17505 | 17513 | | |
| |||
17527 | 17535 | | |
17528 | 17536 | | |
17529 | 17537 | | |
| 17538 | + | |
| 17539 | + | |
| 17540 | + | |
| 17541 | + | |
| 17542 | + | |
17530 | 17543 | | |
17531 | 17544 | | |
17532 | 17545 | | |
| |||
17555 | 17568 | | |
17556 | 17569 | | |
17557 | 17570 | | |
| 17571 | + | |
| 17572 | + | |
| 17573 | + | |
| 17574 | + | |
| 17575 | + | |
17558 | 17576 | | |
17559 | 17577 | | |
17560 | 17578 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17055 | 17055 | | |
17056 | 17056 | | |
17057 | 17057 | | |
17058 | | - | |
| 17058 | + | |
17059 | 17059 | | |
17060 | | - | |
| 17060 | + | |
| 17061 | + | |
17061 | 17062 | | |
17062 | 17063 | | |
17063 | 17064 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19357 | 19357 | | |
19358 | 19358 | | |
19359 | 19359 | | |
19360 | | - | |
19361 | | - | |
19362 | | - | |
19363 | | - | |
19364 | 19360 | | |
19365 | 19361 | | |
19366 | 19362 | | |
| |||
19369 | 19365 | | |
19370 | 19366 | | |
19371 | 19367 | | |
19372 | | - | |
| 19368 | + | |
19373 | 19369 | | |
19374 | 19370 | | |
19375 | 19371 | | |
| |||
19387 | 19383 | | |
19388 | 19384 | | |
19389 | 19385 | | |
19390 | | - | |
| 19386 | + | |
| 19387 | + | |
| 19388 | + | |
| 19389 | + | |
| 19390 | + | |
| 19391 | + | |
| 19392 | + | |
| 19393 | + | |
| 19394 | + | |
| 19395 | + | |
19391 | 19396 | | |
19392 | 19397 | | |
19393 | 19398 | | |
| |||
0 commit comments