| Index: net/ssl/ssl_platform_key_mac_unittest.cc
|
| diff --git a/net/ssl/ssl_platform_key_mac_unittest.cc b/net/ssl/ssl_platform_key_mac_unittest.cc
|
| index 9207dedb086f914c6ac99ad7f74d511d8165e4c0..e35af63b99ccfa3f33027fc320e02976b74849f2 100644
|
| --- a/net/ssl/ssl_platform_key_mac_unittest.cc
|
| +++ b/net/ssl/ssl_platform_key_mac_unittest.cc
|
| @@ -16,6 +16,7 @@
|
| #include "base/files/scoped_temp_dir.h"
|
| #include "base/mac/scoped_cftyperef.h"
|
| #include "base/memory/ref_counted.h"
|
| +#include "net/cert/x509_util_mac.h"
|
| #include "net/ssl/ssl_private_key.h"
|
| #include "net/ssl/ssl_private_key_test_util.h"
|
| #include "net/test/cert_test_util.h"
|
| @@ -76,8 +77,10 @@ TEST_P(SSLPlatformKeyMacTest, KeyMatches) {
|
| nullptr, keychain.InitializeInto()));
|
|
|
| // Insert the certificate into the keychain.
|
| - ASSERT_EQ(noErr,
|
| - SecCertificateAddToKeychain(cert->os_cert_handle(), keychain));
|
| + base::ScopedCFTypeRef<SecCertificateRef> sec_cert(
|
| + x509_util::CreateSecCertificateFromX509Certificate(cert.get()));
|
| + ASSERT_TRUE(sec_cert);
|
| + ASSERT_EQ(noErr, SecCertificateAddToKeychain(sec_cert, keychain));
|
|
|
| // Import the key into the keychain. Apple doesn't accept unencrypted PKCS#8,
|
| // but it accepts the low-level RSAPrivateKey and ECPrivateKey types as
|
|
|