OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/net_errors.h" | 10 #include "net/base/net_errors.h" |
(...skipping 28 matching lines...) Expand all Loading... |
39 // TODO(bulach): implement me. | 39 // TODO(bulach): implement me. |
40 NOTIMPLEMENTED(); | 40 NOTIMPLEMENTED(); |
41 } | 41 } |
42 | 42 |
43 CryptoModule* CertDatabase::GetDefaultModule() const { | 43 CryptoModule* CertDatabase::GetDefaultModule() const { |
44 // TODO(bulach): implement me. | 44 // TODO(bulach): implement me. |
45 NOTIMPLEMENTED(); | 45 NOTIMPLEMENTED(); |
46 return NULL; | 46 return NULL; |
47 } | 47 } |
48 | 48 |
| 49 void CertDatabase::ListModules(CryptoModuleList* modules, bool need_rw) const { |
| 50 // TODO(bulach): implement me. |
| 51 NOTIMPLEMENTED(); |
| 52 modules->clear(); |
| 53 } |
| 54 |
49 int CertDatabase::ImportFromPKCS12(net::CryptoModule* module, | 55 int CertDatabase::ImportFromPKCS12(net::CryptoModule* module, |
50 const std::string& data, | 56 const std::string& data, |
51 const string16& password) { | 57 const string16& password) { |
52 // TODO(bulach): implement me. | 58 // TODO(bulach): implement me. |
53 NOTIMPLEMENTED(); | 59 NOTIMPLEMENTED(); |
54 return ERR_NOT_IMPLEMENTED; | 60 return ERR_NOT_IMPLEMENTED; |
55 } | 61 } |
56 | 62 |
57 int CertDatabase::ExportToPKCS12(const CertificateList& certs, | 63 int CertDatabase::ExportToPKCS12(const CertificateList& certs, |
58 const string16& password, | 64 const string16& password, |
(...skipping 18 matching lines...) Expand all Loading... |
77 | 83 |
78 bool CertDatabase::SetCertTrust(const X509Certificate* cert, | 84 bool CertDatabase::SetCertTrust(const X509Certificate* cert, |
79 CertType type, | 85 CertType type, |
80 unsigned int trust_bits) { | 86 unsigned int trust_bits) { |
81 // TODO(bulach): implement me. | 87 // TODO(bulach): implement me. |
82 NOTIMPLEMENTED(); | 88 NOTIMPLEMENTED(); |
83 return false; | 89 return false; |
84 } | 90 } |
85 | 91 |
86 } // namespace net | 92 } // namespace net |
OLD | NEW |