| 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 #ifndef CHROME_BROWSER_CHROMEOS_CROS_CERT_LIBRARY_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_CROS_CERT_LIBRARY_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_CROS_CERT_LIBRARY_H_ | 6 #define CHROME_BROWSER_CHROMEOS_CROS_CERT_LIBRARY_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 virtual const CertList& GetCertificates() const = 0; | 89 virtual const CertList& GetCertificates() const = 0; |
| 90 | 90 |
| 91 // Returns the current list of user certificates. | 91 // Returns the current list of user certificates. |
| 92 virtual const CertList& GetUserCertificates() const = 0; | 92 virtual const CertList& GetUserCertificates() const = 0; |
| 93 | 93 |
| 94 // Returns the current list of server certificates. | 94 // Returns the current list of server certificates. |
| 95 virtual const CertList& GetServerCertificates() const = 0; | 95 virtual const CertList& GetServerCertificates() const = 0; |
| 96 | 96 |
| 97 // Returns the current list of server CA certificates. | 97 // Returns the current list of server CA certificates. |
| 98 virtual const CertList& GetCACertificates() const = 0; | 98 virtual const CertList& GetCACertificates() const = 0; |
| 99 |
| 100 // Encrypts |raw_data| with supplemental user key. |
| 101 virtual bool EncryptWithSupplementalUserKey(const std::string& raw_data, |
| 102 std::string* encryped_data) const = 0; |
| 103 // Decrypts |encryped_data| with supplemental user key. |
| 104 virtual bool DecryptWithSupplementalUserKey(const std::string& encryped_data, |
| 105 std::string* raw_data) const = 0; |
| 99 }; | 106 }; |
| 100 | 107 |
| 101 } // namespace chromeos | 108 } // namespace chromeos |
| 102 | 109 |
| 103 #endif // CHROME_BROWSER_CHROMEOS_CROS_CERT_LIBRARY_H_ | 110 #endif // CHROME_BROWSER_CHROMEOS_CROS_CERT_LIBRARY_H_ |
| OLD | NEW |