mirror of
https://github.com/denoland/deno.git
synced 2024-11-22 15:06:54 -05:00
ece2a3de5b
The goal of this PR is to address issue #19520 where Deno panics when
encountering an invalid SSL certificate.
This PR achieves that goal by removing an `.expect()` statement and
implementing a match statement on `tsl_config` (found in
[/ext/net/ops_tsl.rs](e071382768/ext/net/ops_tls.rs (L1058)
))
to check whether the desired configuration is valid
---------
Co-authored-by: Matt Mastracci <matthew@mastracci.com>
3 lines
62 B
Text
3 lines
62 B
Text
-----BEGIN CERTIFICATE-----
|
|
INVALID
|
|
-----END CERTIFICATE-----
|