Index: net/cert/cert_verify_proc_android.cc |
diff --git a/net/cert/cert_verify_proc_android.cc b/net/cert/cert_verify_proc_android.cc |
index 2cb12f75c23bd5ac8cbdf82754158719ff3328a6..cdc8347a1df5a9acb405c814430b81c0766efaab 100644 |
--- a/net/cert/cert_verify_proc_android.cc |
+++ b/net/cert/cert_verify_proc_android.cc |
@@ -87,22 +87,7 @@ bool VerifyFromAndroidTrustManager(const std::vector<std::string>& cert_bytes, |
size_t correction_for_root = |
(status == android::CERT_VERIFY_STATUS_ANDROID_OK) ? 1 : 0; |
for (size_t i = 0; i < chain.size() - correction_for_root; ++i) { |
- int sig_alg = OBJ_obj2nid(chain[i]->sig_alg->algorithm); |
- if (sig_alg == NID_md2WithRSAEncryption) { |
- verify_result->has_md2 = true; |
- } else if (sig_alg == NID_md4WithRSAEncryption) { |
- verify_result->has_md4 = true; |
- } else if (sig_alg == NID_md5WithRSAEncryption || |
- sig_alg == NID_md5WithRSA) { |
- verify_result->has_md5 = true; |
- } else if (sig_alg == NID_sha1WithRSAEncryption || |
- sig_alg == NID_dsaWithSHA || sig_alg == NID_dsaWithSHA1 || |
- sig_alg == NID_dsaWithSHA1_2 || sig_alg == NID_sha1WithRSA || |
- sig_alg == NID_ecdsa_with_SHA1) { |
- verify_result->has_sha1 = true; |
- if (i == 0) |
- verify_result->has_sha1_leaf = true; |
- } |
+ FillCertVerifyResultWeakSignature(chain[i], i == 0, verify_result); |
} |
// Extract the public key hashes. |