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

Side by Side Diff: chrome/common/net/x509_certificate_model_openssl.cc

Issue 23567010: Fixing a problem introduced when "Unknown" certs were renamed (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 #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 19 matching lines...) Expand all
30 if (!x509_util::ParsePrincipalKeyAndValueByIndex(name, i, &key, &value)) 30 if (!x509_util::ParsePrincipalKeyAndValueByIndex(name, i, &key, &value))
31 break; 31 break;
32 ret += key; 32 ret += key;
33 ret += " = "; 33 ret += " = ";
34 ret += value; 34 ret += value;
35 ret += '\n'; 35 ret += '\n';
36 } 36 }
37 return ret; 37 return ret;
38 } 38 }
39 39
40 } // namepsace 40 } // namespace
41 41
42 namespace x509_certificate_model { 42 namespace x509_certificate_model {
43 43
44 using net::X509Certificate; 44 using net::X509Certificate;
45 45
46 std::string GetCertNameOrNickname(X509Certificate::OSCertHandle cert_handle) { 46 std::string GetCertNameOrNickname(X509Certificate::OSCertHandle cert_handle) {
47 // TODO(bulach): implement me. 47 // TODO(bulach): implement me.
48 return ""; 48 return "";
49 } 49 }
50 50
51 std::string GetNickname(X509Certificate::OSCertHandle cert_handle) { 51 std::string GetNickname(X509Certificate::OSCertHandle cert_handle) {
52 // TODO(jamescook): implement me. 52 // TODO(jamescook): implement me.
53 return ""; 53 return "";
54 } 54 }
55 55
56 std::string GetTokenName(X509Certificate::OSCertHandle cert_handle) { 56 std::string GetTokenName(X509Certificate::OSCertHandle cert_handle) {
57 // TODO(bulach): implement me. 57 // TODO(bulach): implement me.
58 return ""; 58 return "";
59 } 59 }
60 60
61 std::string GetVersion(net::X509Certificate::OSCertHandle cert_handle) { 61 std::string GetVersion(net::X509Certificate::OSCertHandle cert_handle) {
62 unsigned long version = X509_get_version(cert_handle); 62 unsigned long version = X509_get_version(cert_handle);
63 if (version != ULONG_MAX) 63 if (version != ULONG_MAX)
64 return base::UintToString(version + 1); 64 return base::UintToString(version + 1);
65 return ""; 65 return "";
66 } 66 }
67 67
68 net::CertType GetType(X509Certificate::OSCertHandle os_cert) { 68 net::CertType GetType(X509Certificate::OSCertHandle os_cert) {
69 // TODO(bulach): implement me. 69 // TODO(bulach): implement me.
70 return net::UNKNOWN_CERT; 70 return net::OTHER_CERT;
71 } 71 }
72 72
73 std::string GetEmailAddress(X509Certificate::OSCertHandle os_cert) { 73 std::string GetEmailAddress(X509Certificate::OSCertHandle os_cert) {
74 // TODO(bulach): implement me. 74 // TODO(bulach): implement me.
75 return ""; 75 return "";
76 } 76 }
77 77
78 void GetUsageStrings(X509Certificate::OSCertHandle cert_handle, 78 void GetUsageStrings(X509Certificate::OSCertHandle cert_handle,
79 std::vector<std::string>* usages) { 79 std::vector<std::string>* usages) {
80 // TODO(bulach): implement me. 80 // TODO(bulach): implement me.
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 std::string ProcessRawBitsSignatureWrap( 262 std::string ProcessRawBitsSignatureWrap(
263 net::X509Certificate::OSCertHandle cert_handle) { 263 net::X509Certificate::OSCertHandle cert_handle) {
264 // TODO(bulach): implement me. 264 // TODO(bulach): implement me.
265 return ""; 265 return "";
266 } 266 }
267 267
268 void RegisterDynamicOids() { 268 void RegisterDynamicOids() {
269 } 269 }
270 270
271 } // namespace x509_certificate_model 271 } // namespace x509_certificate_model
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/options/certificate_manager_handler.cc ('k') | chrome/common/net/x509_certificate_model_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698