Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(104)

Side by Side Diff: chrome/browser/chromeos/options/cert_library.h

Issue 2485813002: Allow ECDSA certs to be used for VPN and wifi (Closed)
Patch Set: update comments in *_config_view.cc Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_OPTIONS_CERT_LIBRARY_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_OPTIONS_CERT_LIBRARY_H_
6 #define CHROME_BROWSER_CHROMEOS_OPTIONS_CERT_LIBRARY_H_ 6 #define CHROME_BROWSER_CHROMEOS_OPTIONS_CERT_LIBRARY_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 // Returns true when the certificate list has been initiailized. 61 // Returns true when the certificate list has been initiailized.
62 bool CertificatesLoaded() const; 62 bool CertificatesLoaded() const;
63 63
64 // Retruns the number of certificates available for |type|. 64 // Retruns the number of certificates available for |type|.
65 int NumCertificates(CertType type) const; 65 int NumCertificates(CertType type) const;
66 66
67 // Retreives the certificate property for |type| at |index|. 67 // Retreives the certificate property for |type| at |index|.
68 base::string16 GetCertDisplayStringAt(CertType type, int index) const; 68 base::string16 GetCertDisplayStringAt(CertType type, int index) const;
69 std::string GetServerCACertPEMAt(int index) const; 69 std::string GetServerCACertPEMAt(int index) const;
70 std::string GetUserCertPkcs11IdAt(int index, int* slot_id) const; 70 std::string GetUserCertPkcs11IdAt(int index, int* slot_id) const;
71 bool IsCertHardwareBackedAt(CertType type, int index) const; 71 bool IsCertSecureAt(CertType type, int index) const;
72 72
73 // Returns the index of a Certificate matching |pem_encoded| or -1 if none 73 // Returns the index of a Certificate matching |pem_encoded| or -1 if none
74 // found. This function may be slow depending on the number of stored 74 // found. This function may be slow depending on the number of stored
75 // certificates. 75 // certificates.
76 // TOOD(pneubeck): Either make this more efficient, asynchronous or get rid of 76 // TOOD(pneubeck): Either make this more efficient, asynchronous or get rid of
77 // it. 77 // it.
78 int GetServerCACertIndexByPEM(const std::string& pem_encoded) const; 78 int GetServerCACertIndexByPEM(const std::string& pem_encoded) const;
79 // Same as above but for a PKCS#11 id. 79 // Same as above but for a PKCS#11 id.
80 int GetUserCertIndexByPkcs11Id(const std::string& pkcs11_id) const; 80 int GetUserCertIndexByPkcs11Id(const std::string& pkcs11_id) const;
81 81
(...skipping 15 matching lines...) Expand all
97 net::CertificateList user_certs_; 97 net::CertificateList user_certs_;
98 net::CertificateList server_certs_; 98 net::CertificateList server_certs_;
99 net::CertificateList server_ca_certs_; 99 net::CertificateList server_ca_certs_;
100 100
101 DISALLOW_COPY_AND_ASSIGN(CertLibrary); 101 DISALLOW_COPY_AND_ASSIGN(CertLibrary);
102 }; 102 };
103 103
104 } // namespace chromeos 104 } // namespace chromeos
105 105
106 #endif // CHROME_BROWSER_CHROMEOS_OPTIONS_CERT_LIBRARY_H_ 106 #endif // CHROME_BROWSER_CHROMEOS_OPTIONS_CERT_LIBRARY_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/options/cert_library.cc » ('j') | chrome/browser/chromeos/options/cert_library.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698