Commit be44a6f1 authored by Eric Roman's avatar Eric Roman Committed by Commit Bot

Use net::IsCertificateError() from Cast Media Sink.

This is slightly different in that it will also recognize ERR_SSL_PINNED_KEY_NOT_IN_CERT_CHAIN which the previous code did not.

Change-Id: I5227f8a3dd42de1b9fab4b77a2db157588a4338e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1848397Reviewed-by: default avatarmark a. foltz <mfoltz@chromium.org>
Commit-Queue: Eric Roman <eroman@chromium.org>
Cr-Commit-Position: refs/heads/master@{#704377}
parent 0f84f4f9
...@@ -90,9 +90,7 @@ void RecordError(cast_channel::ChannelError channel_error, ...@@ -90,9 +90,7 @@ void RecordError(cast_channel::ChannelError channel_error,
cast_channel::ChallengeReplyError::CERT_PARSING_FAILED || cast_channel::ChallengeReplyError::CERT_PARSING_FAILED ||
last_error.challenge_reply_error == last_error.challenge_reply_error ==
cast_channel::ChallengeReplyError::CANNOT_EXTRACT_PUBLIC_KEY) || cast_channel::ChallengeReplyError::CANNOT_EXTRACT_PUBLIC_KEY) ||
(last_error.net_return_value <= net::IsCertificateError(last_error.net_return_value) ||
net::ERR_CERT_COMMON_NAME_INVALID && // CERT_XXX errors
last_error.net_return_value > net::ERR_CERT_END) ||
last_error.channel_event == last_error.channel_event ==
cast_channel::ChannelEvent::SSL_SOCKET_CONNECT_FAILED || cast_channel::ChannelEvent::SSL_SOCKET_CONNECT_FAILED ||
last_error.channel_event == last_error.channel_event ==
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment