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

Side by Side Diff: chrome/common/net/x509_certificate_model.h

Issue 182313004: Remove GetPkcs11Id from x509_certificate_model (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: .. Created 6 years, 9 months 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 | Annotate | Revision Log
OLDNEW
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_COMMON_NET_X509_CERTIFICATE_MODEL_H_ 5 #ifndef CHROME_COMMON_NET_X509_CERTIFICATE_MODEL_H_
6 #define CHROME_COMMON_NET_X509_CERTIFICATE_MODEL_H_ 6 #define CHROME_COMMON_NET_X509_CERTIFICATE_MODEL_H_
7 7
8 #include "net/cert/cert_type.h" 8 #include "net/cert/cert_type.h"
9 #include "net/cert/x509_certificate.h" 9 #include "net/cert/x509_certificate.h"
10 10
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 std::string GetSubjectName(net::X509Certificate::OSCertHandle cert_handle); 70 std::string GetSubjectName(net::X509Certificate::OSCertHandle cert_handle);
71 71
72 void GetEmailAddresses(net::X509Certificate::OSCertHandle cert_handle, 72 void GetEmailAddresses(net::X509Certificate::OSCertHandle cert_handle,
73 std::vector<std::string>* email_addresses); 73 std::vector<std::string>* email_addresses);
74 74
75 void GetNicknameStringsFromCertList(const net::CertificateList& certs, 75 void GetNicknameStringsFromCertList(const net::CertificateList& certs,
76 const std::string& cert_expired, 76 const std::string& cert_expired,
77 const std::string& cert_not_yet_valid, 77 const std::string& cert_not_yet_valid,
78 std::vector<std::string>* nick_names); 78 std::vector<std::string>* nick_names);
79 79
80 // Returns the PKCS#11 attribute CKA_ID for a certificate as an upper-case
81 // hex string, or the empty string if none is found.
82 std::string GetPkcs11Id(net::X509Certificate::OSCertHandle cert_handle);
83
84 struct Extension { 80 struct Extension {
85 std::string name; 81 std::string name;
86 std::string value; 82 std::string value;
87 }; 83 };
88 84
89 typedef std::vector<Extension> Extensions; 85 typedef std::vector<Extension> Extensions;
90 86
91 void GetExtensions( 87 void GetExtensions(
92 const std::string& critical_label, 88 const std::string& critical_label,
93 const std::string& non_critical_label, 89 const std::string& non_critical_label,
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 #if defined(USE_NSS) 137 #if defined(USE_NSS)
142 // Format a buffer as a space separated string, with 16 bytes on each line. 138 // Format a buffer as a space separated string, with 16 bytes on each line.
143 // |data_length| is the length in bits. 139 // |data_length| is the length in bits.
144 std::string ProcessRawBits(const unsigned char* data, 140 std::string ProcessRawBits(const unsigned char* data,
145 size_t data_length); 141 size_t data_length);
146 #endif // USE_NSS 142 #endif // USE_NSS
147 143
148 } // namespace x509_certificate_model 144 } // namespace x509_certificate_model
149 145
150 #endif // CHROME_COMMON_NET_X509_CERTIFICATE_MODEL_H_ 146 #endif // CHROME_COMMON_NET_X509_CERTIFICATE_MODEL_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/options/wifi_config_view.cc ('k') | chrome/common/net/x509_certificate_model_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698