1
0
Fork 0
mirror of https://github.com/ossrs/srs.git synced 2025-03-09 15:49:59 +00:00
srs/trunk/src
Haibo Chen 0649a6d400
Fix bug for upgrading to OpenSSL 3.0. v5.0.189 v6.0.89 (#3827)
The fix is for the DH_set_length error. As shown in lines 2-5, OpenSSL
3.0 added a check for length, which allowed this issue to be exposed.
```
1 if (dh->params.q == NULL) {
2       /* secret exponent length, must satisfy 2^(l-1) <= p */
3        if (dh->length != 0
4            && dh->length >= BN_num_bits(dh->params.p))
5            goto err;
6        l = dh->length ? dh->length : BN_num_bits(dh->params.p) - 1;
7        if (!BN_priv_rand_ex(priv_key, l, BN_RAND_TOP_ONE,
8                             BN_RAND_BOTTOM_ANY, 0, ctx))
9            goto err;
        ... ...
    }
```


---------

Co-authored-by: john <hondaxiao@tencent.com>
2023-10-11 07:50:32 -05:00
..
app SRT: Fix the missing config mss. v5.0.188 v6.0.88 (#3825) 2023-10-10 07:10:58 -05:00
core Fix bug for upgrading to OpenSSL 3.0. v5.0.189 v6.0.89 (#3827) 2023-10-11 07:50:32 -05:00
kernel Bugfix: HEVC SRT stream supports multiple PPS fields. v6.0.76 (#3722) 2023-09-18 10:58:05 +08:00
main Remove unreachable issues in code (#3793) 2023-09-04 16:31:54 +08:00
protocol Fix bug for upgrading to OpenSSL 3.0. v5.0.189 v6.0.89 (#3827) 2023-10-11 07:50:32 -05:00
utest SRT: Fix the missing config mss. v5.0.188 v6.0.88 (#3825) 2023-10-10 07:10:58 -05:00