Index: ios/web/net/crw_cert_verification_controller.mm |
diff --git a/ios/web/net/crw_cert_verification_controller.mm b/ios/web/net/crw_cert_verification_controller.mm |
index 587d92c9eb342f0b1d70f9280d608f65d8655a65..bb7717ec5d96aefb373030abd53102dedb1c8802 100644 |
--- a/ios/web/net/crw_cert_verification_controller.mm |
+++ b/ios/web/net/crw_cert_verification_controller.mm |
@@ -17,6 +17,7 @@ |
#include "ios/web/public/web_thread.h" |
#import "ios/web/web_state/wk_web_view_security_util.h" |
#include "net/cert/cert_verify_proc_ios.h" |
+#include "net/cert/x509_util_ios.h" |
#if !defined(__has_feature) || !__has_feature(objc_arc) |
#error "This file requires ARC support." |
@@ -224,9 +225,9 @@ loadPolicyForRejectedTrustResult:(SecTrustResultType)trustResult |
// Check if user has decided to proceed with this bad cert. |
scoped_refptr<net::X509Certificate> leafCert = |
- net::X509Certificate::CreateFromHandle( |
+ net::x509_util::CreateX509CertificateFromSecCertificate( |
SecTrustGetCertificateAtIndex(trust, 0), |
- net::X509Certificate::OSCertHandles()); |
+ std::vector<SecCertificateRef>()); |
if (!leafCert) |
return web::CERT_ACCEPT_POLICY_NON_RECOVERABLE_ERROR; |