| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chromeos/network/onc/onc_certificate_importer_impl.h" | 5 #include "chromeos/network/onc/onc_certificate_importer_impl.h" |
| 6 | 6 |
| 7 #include <cert.h> | 7 #include <cert.h> |
| 8 #include <keyhi.h> | 8 #include <keyhi.h> |
| 9 #include <pk11pub.h> | 9 #include <pk11pub.h> |
| 10 | 10 |
| 11 #include "base/base64.h" | 11 #include "base/base64.h" |
| 12 #include "base/bind.h" | 12 #include "base/bind.h" |
| 13 #include "base/bind_helpers.h" | 13 #include "base/bind_helpers.h" |
| 14 #include "base/callback.h" | 14 #include "base/callback.h" |
| 15 #include "base/location.h" | 15 #include "base/location.h" |
| 16 #include "base/logging.h" | 16 #include "base/logging.h" |
| 17 #include "base/sequenced_task_runner.h" | 17 #include "base/sequenced_task_runner.h" |
| 18 #include "base/single_thread_task_runner.h" | 18 #include "base/single_thread_task_runner.h" |
| 19 #include "base/thread_task_runner_handle.h" | 19 #include "base/thread_task_runner_handle.h" |
| 20 #include "base/values.h" | 20 #include "base/values.h" |
| 21 #include "chromeos/network/network_event_log.h" | 21 #include "chromeos/network/network_event_log.h" |
| 22 #include "chromeos/network/onc/onc_utils.h" | 22 #include "chromeos/network/onc/onc_utils.h" |
| 23 #include "components/onc/onc_constants.h" | |
| 24 #include "crypto/scoped_nss_types.h" | 23 #include "crypto/scoped_nss_types.h" |
| 25 #include "net/base/crypto_module.h" | 24 #include "net/base/crypto_module.h" |
| 26 #include "net/base/net_errors.h" | 25 #include "net/base/net_errors.h" |
| 27 #include "net/cert/nss_cert_database.h" | 26 #include "net/cert/nss_cert_database.h" |
| 28 #include "net/cert/x509_certificate.h" | 27 #include "net/cert/x509_certificate.h" |
| 29 | 28 |
| 30 namespace chromeos { | 29 namespace chromeos { |
| 31 namespace onc { | 30 namespace onc { |
| 32 | 31 |
| 33 namespace { | 32 namespace { |
| (...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 397 PK11_SetPrivateKeyNickname(private_key, const_cast<char*>(guid.c_str())); | 396 PK11_SetPrivateKeyNickname(private_key, const_cast<char*>(guid.c_str())); |
| 398 SECKEY_DestroyPrivateKey(private_key); | 397 SECKEY_DestroyPrivateKey(private_key); |
| 399 } else { | 398 } else { |
| 400 LOG(WARNING) << "Unable to find private key for certificate."; | 399 LOG(WARNING) << "Unable to find private key for certificate."; |
| 401 } | 400 } |
| 402 return true; | 401 return true; |
| 403 } | 402 } |
| 404 | 403 |
| 405 } // namespace onc | 404 } // namespace onc |
| 406 } // namespace chromeos | 405 } // namespace chromeos |
| OLD | NEW |