| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 "net/base/cert_database.h" | 5 #include "net/base/cert_database.h" |
| 6 | 6 |
| 7 #include <openssl/x509.h> | 7 #include <openssl/x509.h> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "net/base/crypto_module.h" | 10 #include "net/base/crypto_module.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 } | 54 } |
| 55 | 55 |
| 56 void CertDatabase::ListModules(CryptoModuleList* modules, bool need_rw) const { | 56 void CertDatabase::ListModules(CryptoModuleList* modules, bool need_rw) const { |
| 57 // TODO(bulach): implement me. | 57 // TODO(bulach): implement me. |
| 58 NOTIMPLEMENTED(); | 58 NOTIMPLEMENTED(); |
| 59 modules->clear(); | 59 modules->clear(); |
| 60 } | 60 } |
| 61 | 61 |
| 62 int CertDatabase::ImportFromPKCS12(CryptoModule* module, | 62 int CertDatabase::ImportFromPKCS12(CryptoModule* module, |
| 63 const std::string& data, | 63 const std::string& data, |
| 64 const string16& password) { | 64 const string16& password, |
| 65 bool is_extractable) { |
| 65 // TODO(bulach): implement me. | 66 // TODO(bulach): implement me. |
| 66 NOTIMPLEMENTED(); | 67 NOTIMPLEMENTED(); |
| 67 return ERR_NOT_IMPLEMENTED; | 68 return ERR_NOT_IMPLEMENTED; |
| 68 } | 69 } |
| 69 | 70 |
| 70 int CertDatabase::ExportToPKCS12(const CertificateList& certs, | 71 int CertDatabase::ExportToPKCS12(const CertificateList& certs, |
| 71 const string16& password, | 72 const string16& password, |
| 72 std::string* output) const { | 73 std::string* output) const { |
| 73 // TODO(bulach): implement me. | 74 // TODO(bulach): implement me. |
| 74 NOTIMPLEMENTED(); | 75 NOTIMPLEMENTED(); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 90 | 91 |
| 91 bool CertDatabase::SetCertTrust(const X509Certificate* cert, | 92 bool CertDatabase::SetCertTrust(const X509Certificate* cert, |
| 92 CertType type, | 93 CertType type, |
| 93 unsigned int trust_bits) { | 94 unsigned int trust_bits) { |
| 94 // TODO(bulach): implement me. | 95 // TODO(bulach): implement me. |
| 95 NOTIMPLEMENTED(); | 96 NOTIMPLEMENTED(); |
| 96 return false; | 97 return false; |
| 97 } | 98 } |
| 98 | 99 |
| 99 } // namespace net | 100 } // namespace net |
| OLD | NEW |