mirror of
https://github.com/denoland/deno.git
synced 2025-02-19 11:52:52 -05:00

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-----
|