Chromium Code Reviews| 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_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 Loading... | |
| 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); | |
|
Ryan Sleevi
2014/03/27 20:25:21
Why haven't you updated x509_certificate_model_nss
tbarzic
2014/03/27 20:30:39
d'oh. I thought I did... seems that I lost the dif
| |
| 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 Loading... | |
| 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_ |
| OLD | NEW |