| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 NOTIMPLEMENTED(); | 75 NOTIMPLEMENTED(); |
| 76 return 0; | 76 return 0; |
| 77 } | 77 } |
| 78 | 78 |
| 79 bool CertDatabase::DeleteCertAndKey(const X509Certificate* cert) { | 79 bool CertDatabase::DeleteCertAndKey(const X509Certificate* cert) { |
| 80 // TODO(bulach): implement me. | 80 // TODO(bulach): implement me. |
| 81 NOTIMPLEMENTED(); | 81 NOTIMPLEMENTED(); |
| 82 return false; | 82 return false; |
| 83 } | 83 } |
| 84 | 84 |
| 85 bool CertDatabase::DeleteCertAndKeyByLabel(const std::string& label) { | |
| 86 // TODO(gspencer):Find the certificate with the given label | |
| 87 // (nickname), and delete it. | |
| 88 NOTIMPLEMENTED(); | |
| 89 return false; | |
| 90 } | |
| 91 | |
| 92 CertDatabase::TrustBits CertDatabase::GetCertTrust(const X509Certificate* cert, | 85 CertDatabase::TrustBits CertDatabase::GetCertTrust(const X509Certificate* cert, |
| 93 CertType type) const { | 86 CertType type) const { |
| 94 // TODO(bulach): implement me. | 87 // TODO(bulach): implement me. |
| 95 NOTIMPLEMENTED(); | 88 NOTIMPLEMENTED(); |
| 96 return 0; | 89 return 0; |
| 97 } | 90 } |
| 98 | 91 |
| 99 bool CertDatabase::SetCertTrust(const X509Certificate* cert, | 92 bool CertDatabase::SetCertTrust(const X509Certificate* cert, |
| 100 CertType type, | 93 CertType type, |
| 101 TrustBits trust_bits) { | 94 TrustBits trust_bits) { |
| 102 // TODO(bulach): implement me. | 95 // TODO(bulach): implement me. |
| 103 NOTIMPLEMENTED(); | 96 NOTIMPLEMENTED(); |
| 104 return false; | 97 return false; |
| 105 } | 98 } |
| 106 | 99 |
| 107 } // namespace net | 100 } // namespace net |
| OLD | NEW |