diff options
Diffstat (limited to 'net/cert/cert_verify_proc_mac.cc')
-rw-r--r-- | net/cert/cert_verify_proc_mac.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/net/cert/cert_verify_proc_mac.cc b/net/cert/cert_verify_proc_mac.cc index 834b5cb..c4e0c41 100644 --- a/net/cert/cert_verify_proc_mac.cc +++ b/net/cert/cert_verify_proc_mac.cc @@ -192,6 +192,7 @@ void GetCertChainInfo(CFArrayRef cert_chain, verify_result->has_md4 = false; verify_result->has_md5 = false; verify_result->has_sha1 = false; + verify_result->has_sha1_leaf = false; SecCertificateRef verified_cert = NULL; std::vector<SecCertificateRef> verified_chain; @@ -252,8 +253,10 @@ void GetCertChainInfo(CFArrayRef cert_chain, CSSMOIDEqual(alg_oid, &CSSMOID_SHA1WithDSA_JDK) || CSSMOIDEqual(alg_oid, &CSSMOID_ECDSA_WithSHA1)) { verify_result->has_sha1 = true; - if (i == 0) + if (i == 0) { + verify_result->has_sha1_leaf = true; *leaf_is_weak = true; + } } } if (!verified_cert) { |