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 #include "chrome/common/net/x509_certificate_model.h" | 5 #include "chrome/common/net/x509_certificate_model.h" |
6 | 6 |
7 #include <openssl/obj_mac.h> | 7 #include <openssl/obj_mac.h> |
8 #include <openssl/sha.h> | 8 #include <openssl/sha.h> |
9 #include <openssl/x509v3.h> | 9 #include <openssl/x509v3.h> |
10 | 10 |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
173 } | 173 } |
174 | 174 |
175 void GetNicknameStringsFromCertList( | 175 void GetNicknameStringsFromCertList( |
176 const std::vector<scoped_refptr<net::X509Certificate> >& certs, | 176 const std::vector<scoped_refptr<net::X509Certificate> >& certs, |
177 const std::string& cert_expired, | 177 const std::string& cert_expired, |
178 const std::string& cert_not_yet_valid, | 178 const std::string& cert_not_yet_valid, |
179 std::vector<std::string>* nick_names) { | 179 std::vector<std::string>* nick_names) { |
180 // TODO(bulach): implement me. | 180 // TODO(bulach): implement me. |
181 } | 181 } |
182 | 182 |
183 std::string GetPkcs11Id(net::X509Certificate::OSCertHandle cert_handle) { | |
184 // TODO(jamescook): implement me. | |
185 return ""; | |
186 } | |
187 | |
188 void GetExtensions( | 183 void GetExtensions( |
189 const std::string& critical_label, | 184 const std::string& critical_label, |
190 const std::string& non_critical_label, | 185 const std::string& non_critical_label, |
191 net::X509Certificate::OSCertHandle cert_handle, | 186 net::X509Certificate::OSCertHandle cert_handle, |
192 Extensions* extensions) { | 187 Extensions* extensions) { |
193 // TODO(bulach): implement me. | 188 // TODO(bulach): implement me. |
194 } | 189 } |
195 | 190 |
196 std::string HashCertSHA256(net::X509Certificate::OSCertHandle cert_handle) { | 191 std::string HashCertSHA256(net::X509Certificate::OSCertHandle cert_handle) { |
197 unsigned char sha256_data[SHA256_DIGEST_LENGTH] = {0}; | 192 unsigned char sha256_data[SHA256_DIGEST_LENGTH] = {0}; |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 std::string ProcessRawBitsSignatureWrap( | 257 std::string ProcessRawBitsSignatureWrap( |
263 net::X509Certificate::OSCertHandle cert_handle) { | 258 net::X509Certificate::OSCertHandle cert_handle) { |
264 // TODO(bulach): implement me. | 259 // TODO(bulach): implement me. |
265 return ""; | 260 return ""; |
266 } | 261 } |
267 | 262 |
268 void RegisterDynamicOids() { | 263 void RegisterDynamicOids() { |
269 } | 264 } |
270 | 265 |
271 } // namespace x509_certificate_model | 266 } // namespace x509_certificate_model |
OLD | NEW |