Repository navigation
Commit 16dbd09
committed
Keep a fixed DTLS method's version under a CTX maximum
protoVerTbl now lists DTLS1_3_VERSION, so
wolfSSL_CTX_set_max_proto_version() with 0 or DTLS1_3_VERSION turned a
wolfDTLSv1_2_*_method() CTX into DTLS 1.3, and the fixed method could
not downgrade back to 1.2. A maximum of DTLS1_VERSION already turned it
into DTLS 1.0. OpenSSL stores no maximum for a fixed method, and
wolfSSL_set_max_proto_version() already keeps the fixed version of an
SSL.
Set_CTX_max_proto_version() now moves the method version of a DTLS CTX
only when the method may downgrade. A maximum at or above a fixed
version leaves it, and one below it fails through CtxDtlsVersionLeft()
and restores the CTX, as the SSL setter does.1 parent c4a5a4e commit 16dbd09
2 files changed
Lines changed: 20 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5608 | 5608 | | |
5609 | 5609 | | |
5610 | 5610 | | |
5611 | | - | |
| 5611 | + | |
| 5612 | + | |
5612 | 5613 | | |
5613 | 5614 | | |
5614 | | - | |
| 5615 | + | |
| 5616 | + | |
5615 | 5617 | | |
5616 | 5618 | | |
5617 | 5619 | | |
5618 | | - | |
| 5620 | + | |
| 5621 | + | |
5619 | 5622 | | |
5620 | 5623 | | |
5621 | 5624 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16947 | 16947 | | |
16948 | 16948 | | |
16949 | 16949 | | |
16950 | | - | |
16951 | | - | |
16952 | | - | |
| 16950 | + | |
| 16951 | + | |
16953 | 16952 | | |
16954 | 16953 | | |
16955 | 16954 | | |
| |||
16960 | 16959 | | |
16961 | 16960 | | |
16962 | 16961 | | |
16963 | | - | |
| 16962 | + | |
| 16963 | + | |
| 16964 | + | |
| 16965 | + | |
| 16966 | + | |
| 16967 | + | |
16964 | 16968 | | |
16965 | 16969 | | |
16966 | | - | |
16967 | | - | |
16968 | | - | |
16969 | 16970 | | |
16970 | 16971 | | |
16971 | | - | |
| 16972 | + | |
16972 | 16973 | | |
16973 | | - | |
| 16974 | + | |
16974 | 16975 | | |
16975 | 16976 | | |
16976 | 16977 | | |
| |||
18263 | 18264 | | |
18264 | 18265 | | |
18265 | 18266 | | |
18266 | | - | |
18267 | | - | |
18268 | | - | |
18269 | | - | |
| 18267 | + | |
| 18268 | + | |
| 18269 | + | |
| 18270 | + | |
18270 | 18271 | | |
18271 | 18272 | | |
18272 | 18273 | | |
| |||
0 commit comments