This commit is contained in:
Kevin Sawicki 2017-05-03 16:22:56 -07:00 committed by GitHub
parent e5648072dc
commit 110611f242

View file

@ -81,9 +81,9 @@ void ShowCertificateTrust(atom::NativeWindow* parent_window,
NULL, NULL,
&chain_context)) { &chain_context)) {
auto error_status = chain_context->TrustStatus.dwErrorStatus; auto error_status = chain_context->TrustStatus.dwErrorStatus;
if (error_status == CERT_TRUST_IS_SELF_SIGNED if (error_status == CERT_TRUST_IS_SELF_SIGNED ||
|| error_status == CERT_TRUST_IS_UNTRUSTED_ROOT) { error_status == CERT_TRUST_IS_UNTRUSTED_ROOT) {
// this is the only scenario we're interested in supporting // these are the only scenarios we're interested in supporting
AddToTrustedRootStore(cert_context, cert); AddToTrustedRootStore(cert_context, cert);
} }