summaryrefslogtreecommitdiffstats
path: root/chrome/common/net/x509_certificate_model.h
diff options
context:
space:
mode:
authorjamescook@chromium.org <jamescook@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-13 22:31:51 +0000
committerjamescook@chromium.org <jamescook@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-13 22:31:51 +0000
commit388e4d376be45063c5ba65b4d089f245665b7917 (patch)
tree70b32b48a0f7b4a9a9dd20d44f79bfa3b72732c0 /chrome/common/net/x509_certificate_model.h
parentccc66057ce11a5217c730cee82900bc21644a6fd (diff)
downloadchromium_src-388e4d376be45063c5ba65b4d089f245665b7917.zip
chromium_src-388e4d376be45063c5ba65b4d089f245665b7917.tar.gz
chromium_src-388e4d376be45063c5ba65b4d089f245665b7917.tar.bz2
Join Wi-Fi network dialog lists user and server-CA certificates.
- Fixed width of server CA combobox, as it can be very wide. - Introduced WifiConfigModel to hold cert info for WifiConfigView. - Send user cert to flimflam by PKCS#11 ID - Send server CA cert to flimflam by nickname BUG=chromium-os:11412 TEST=Make successful connection to 802.1x network. Review URL: http://codereview.chromium.org/6693083 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@81498 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/net/x509_certificate_model.h')
-rw-r--r--chrome/common/net/x509_certificate_model.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/common/net/x509_certificate_model.h b/chrome/common/net/x509_certificate_model.h
index f19ecb2..0c4806d 100644
--- a/chrome/common/net/x509_certificate_model.h
+++ b/chrome/common/net/x509_certificate_model.h
@@ -20,6 +20,8 @@ namespace x509_certificate_model {
std::string GetCertNameOrNickname(
net::X509Certificate::OSCertHandle cert_handle);
+std::string GetNickname(net::X509Certificate::OSCertHandle cert_handle);
+
std::string GetTokenName(net::X509Certificate::OSCertHandle cert_handle);
std::string GetVersion(net::X509Certificate::OSCertHandle cert_handle);
@@ -77,6 +79,10 @@ void GetNicknameStringsFromCertList(const net::CertificateList& certs,
const std::string& cert_not_yet_valid,
std::vector<std::string>* nick_names);
+// Returns the PKCS#11 attribute CKA_ID for a certificate as an upper-case
+// hex string, or the empty string if none is found.
+std::string GetPkcs11Id(net::X509Certificate::OSCertHandle cert_handle);
+
struct Extension {
std::string name;
std::string value;