| 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 18 matching lines...) Expand all Loading... |
| 29 | 29 |
| 30 return OK; | 30 return OK; |
| 31 } | 31 } |
| 32 | 32 |
| 33 int CertDatabase::AddUserCert(X509Certificate* cert) { | 33 int CertDatabase::AddUserCert(X509Certificate* cert) { |
| 34 // TODO(bulach): implement me. | 34 // TODO(bulach): implement me. |
| 35 NOTIMPLEMENTED(); | 35 NOTIMPLEMENTED(); |
| 36 return ERR_NOT_IMPLEMENTED; | 36 return ERR_NOT_IMPLEMENTED; |
| 37 } | 37 } |
| 38 | 38 |
| 39 void CertDatabase::ListCerts(CertificateList* certs) { | |
| 40 // TODO(bulach): implement me. | |
| 41 NOTIMPLEMENTED(); | |
| 42 } | |
| 43 | |
| 44 CryptoModule* CertDatabase::GetPublicModule() const { | |
| 45 // TODO(bulach): implement me. | |
| 46 NOTIMPLEMENTED(); | |
| 47 return NULL; | |
| 48 } | |
| 49 | |
| 50 CryptoModule* CertDatabase::GetPrivateModule() const { | |
| 51 // TODO(bulach): implement me. | |
| 52 NOTIMPLEMENTED(); | |
| 53 return NULL; | |
| 54 } | |
| 55 | |
| 56 void CertDatabase::ListModules(CryptoModuleList* modules, bool need_rw) const { | |
| 57 // TODO(bulach): implement me. | |
| 58 NOTIMPLEMENTED(); | |
| 59 modules->clear(); | |
| 60 } | |
| 61 | |
| 62 int CertDatabase::ImportFromPKCS12(CryptoModule* module, | |
| 63 const std::string& data, | |
| 64 const string16& password, | |
| 65 bool is_extractable, | |
| 66 CertificateList* imported_certs) { | |
| 67 // TODO(bulach): implement me. | |
| 68 NOTIMPLEMENTED(); | |
| 69 return ERR_NOT_IMPLEMENTED; | |
| 70 } | |
| 71 | |
| 72 int CertDatabase::ExportToPKCS12(const CertificateList& certs, | |
| 73 const string16& password, | |
| 74 std::string* output) const { | |
| 75 // TODO(bulach): implement me. | |
| 76 NOTIMPLEMENTED(); | |
| 77 return 0; | |
| 78 } | |
| 79 | |
| 80 bool CertDatabase::DeleteCertAndKey(const X509Certificate* cert) { | |
| 81 // TODO(bulach): implement me. | |
| 82 NOTIMPLEMENTED(); | |
| 83 return false; | |
| 84 } | |
| 85 | |
| 86 CertDatabase::TrustBits CertDatabase::GetCertTrust(const X509Certificate* cert, | |
| 87 CertType type) const { | |
| 88 // TODO(bulach): implement me. | |
| 89 NOTIMPLEMENTED(); | |
| 90 return 0; | |
| 91 } | |
| 92 | |
| 93 bool CertDatabase::SetCertTrust(const X509Certificate* cert, | |
| 94 CertType type, | |
| 95 TrustBits trust_bits) { | |
| 96 // TODO(bulach): implement me. | |
| 97 NOTIMPLEMENTED(); | |
| 98 return false; | |
| 99 } | |
| 100 | |
| 101 } // namespace net | 39 } // namespace net |
| OLD | NEW |