Index: net/cert/cert_database_openssl.cc |
diff --git a/net/cert/cert_database_openssl.cc b/net/cert/cert_database_openssl.cc |
index 23b64cc256f0dab4820aee90660e481435a7fec9..a67ac1be5fe77364130671ceb3c9710862c48cf7 100644 |
--- a/net/cert/cert_database_openssl.cc |
+++ b/net/cert/cert_database_openssl.cc |
@@ -8,7 +8,7 @@ |
#include "base/logging.h" |
#include "base/observer_list_threadsafe.h" |
-#include "crypto/openssl_util.h" |
+#include "crypto/scoped_openssl_types.h" |
#include "net/base/crypto_module.h" |
#include "net/base/net_errors.h" |
#include "net/base/openssl_private_key_store.h" |
@@ -40,7 +40,7 @@ int CertDatabase::CheckUserCert(X509Certificate* cert) { |
return ERR_CERT_DATE_INVALID; |
// X509_PUBKEY_get() transfers ownership, not X509_get_X509_PUBKEY() |
- crypto::ScopedOpenSSL<EVP_PKEY, EVP_PKEY_free> public_key( |
+ crypto::ScopedEVP_PKEY public_key( |
X509_PUBKEY_get(X509_get_X509_PUBKEY(cert->os_cert_handle()))); |
if (!OpenSSLPrivateKeyStore::HasPrivateKey(public_key.get())) |