| 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 22 matching lines...) Expand all Loading... |
| 33 // TODO(bulach): implement me. | 33 // TODO(bulach): implement me. |
| 34 NOTIMPLEMENTED(); | 34 NOTIMPLEMENTED(); |
| 35 return ERR_NOT_IMPLEMENTED; | 35 return ERR_NOT_IMPLEMENTED; |
| 36 } | 36 } |
| 37 | 37 |
| 38 void CertDatabase::ListCerts(CertificateList* certs) { | 38 void CertDatabase::ListCerts(CertificateList* certs) { |
| 39 // TODO(bulach): implement me. | 39 // TODO(bulach): implement me. |
| 40 NOTIMPLEMENTED(); | 40 NOTIMPLEMENTED(); |
| 41 } | 41 } |
| 42 | 42 |
| 43 int CertDatabase::ImportFromPKCS12(const std::string& data, | 43 CryptoModule* CertDatabase::GetDefaultModule() const { |
| 44 // TODO(bulach): implement me. |
| 45 NOTIMPLEMENTED(); |
| 46 return NULL; |
| 47 } |
| 48 |
| 49 int CertDatabase::ImportFromPKCS12(net::CryptoModule* module, |
| 50 const std::string& data, |
| 44 const string16& password) { | 51 const string16& password) { |
| 45 // TODO(bulach): implement me. | 52 // TODO(bulach): implement me. |
| 46 NOTIMPLEMENTED(); | 53 NOTIMPLEMENTED(); |
| 47 return ERR_NOT_IMPLEMENTED; | 54 return ERR_NOT_IMPLEMENTED; |
| 48 } | 55 } |
| 49 | 56 |
| 50 int CertDatabase::ExportToPKCS12(const CertificateList& certs, | 57 int CertDatabase::ExportToPKCS12(const CertificateList& certs, |
| 51 const string16& password, | 58 const string16& password, |
| 52 std::string* output) const { | 59 std::string* output) const { |
| 53 // TODO(bulach): implement me. | 60 // TODO(bulach): implement me. |
| (...skipping 16 matching lines...) Expand all Loading... |
| 70 | 77 |
| 71 bool CertDatabase::SetCertTrust(const X509Certificate* cert, | 78 bool CertDatabase::SetCertTrust(const X509Certificate* cert, |
| 72 CertType type, | 79 CertType type, |
| 73 unsigned int trust_bits) { | 80 unsigned int trust_bits) { |
| 74 // TODO(bulach): implement me. | 81 // TODO(bulach): implement me. |
| 75 NOTIMPLEMENTED(); | 82 NOTIMPLEMENTED(); |
| 76 return false; | 83 return false; |
| 77 } | 84 } |
| 78 | 85 |
| 79 } // namespace net | 86 } // namespace net |
| OLD | NEW |