OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include <openssl/x509v3.h> |
| 6 |
| 7 #include "chrome/common/net/x509_certificate_model.h" |
| 8 |
| 9 #include "net/base/x509_certificate.h" |
| 10 |
| 11 namespace x509_certificate_model { |
| 12 |
| 13 using net::X509Certificate; |
| 14 |
| 15 std::string GetCertNameOrNickname(X509Certificate::OSCertHandle cert_handle) { |
| 16 // TODO(bulach): implement me. |
| 17 return ""; |
| 18 } |
| 19 |
| 20 std::string GetTokenName(X509Certificate::OSCertHandle cert_handle) { |
| 21 // TODO(bulach): implement me. |
| 22 return ""; |
| 23 } |
| 24 |
| 25 std::string GetVersion(net::X509Certificate::OSCertHandle cert_handle) { |
| 26 // TODO(bulach): implement me. |
| 27 return ""; |
| 28 } |
| 29 |
| 30 net::CertType GetType(X509Certificate::OSCertHandle os_cert) { |
| 31 // TODO(bulach): implement me. |
| 32 return net::UNKNOWN_CERT; |
| 33 } |
| 34 |
| 35 std::string GetEmailAddress(X509Certificate::OSCertHandle os_cert) { |
| 36 // TODO(bulach): implement me. |
| 37 return ""; |
| 38 } |
| 39 |
| 40 void GetUsageStrings(X509Certificate::OSCertHandle cert_handle, |
| 41 std::vector<std::string>* usages) { |
| 42 // TODO(bulach): implement me. |
| 43 } |
| 44 |
| 45 std::string GetKeyUsageString(X509Certificate::OSCertHandle cert_handle) { |
| 46 // TODO(bulach): implement me. |
| 47 return ""; |
| 48 } |
| 49 |
| 50 std::string GetSerialNumberHexified( |
| 51 X509Certificate::OSCertHandle cert_handle, |
| 52 const std::string& alternative_text) { |
| 53 // TODO(bulach): implement me. |
| 54 return ""; |
| 55 } |
| 56 |
| 57 std::string GetIssuerCommonName( |
| 58 X509Certificate::OSCertHandle cert_handle, |
| 59 const std::string& alternative_text) { |
| 60 // TODO(bulach): implement me. |
| 61 return ""; |
| 62 } |
| 63 |
| 64 std::string GetIssuerOrgName( |
| 65 X509Certificate::OSCertHandle cert_handle, |
| 66 const std::string& alternative_text) { |
| 67 // TODO(bulach): implement me. |
| 68 return ""; |
| 69 } |
| 70 |
| 71 std::string GetIssuerOrgUnitName( |
| 72 X509Certificate::OSCertHandle cert_handle, |
| 73 const std::string& alternative_text) { |
| 74 // TODO(bulach): implement me. |
| 75 return ""; |
| 76 } |
| 77 |
| 78 std::string GetSubjectOrgName( |
| 79 X509Certificate::OSCertHandle cert_handle, |
| 80 const std::string& alternative_text) { |
| 81 // TODO(bulach): implement me. |
| 82 return ""; |
| 83 } |
| 84 |
| 85 std::string GetSubjectOrgUnitName( |
| 86 X509Certificate::OSCertHandle cert_handle, |
| 87 const std::string& alternative_text) { |
| 88 // TODO(bulach): implement me. |
| 89 return ""; |
| 90 } |
| 91 |
| 92 std::string GetSubjectCommonName(X509Certificate::OSCertHandle cert_handle, |
| 93 const std::string& alternative_text) { |
| 94 // TODO(bulach): implement me. |
| 95 return ""; |
| 96 } |
| 97 |
| 98 bool GetTimes(X509Certificate::OSCertHandle cert_handle, |
| 99 base::Time* issued, base::Time* expires) { |
| 100 // TODO(bulach): implement me. |
| 101 return false; |
| 102 } |
| 103 |
| 104 std::string GetTitle(net::X509Certificate::OSCertHandle cert_handle) { |
| 105 // TODO(bulach): implement me. |
| 106 return ""; |
| 107 } |
| 108 |
| 109 std::string GetIssuerName(net::X509Certificate::OSCertHandle cert_handle) { |
| 110 // TODO(bulach): implement me. |
| 111 return ""; |
| 112 } |
| 113 |
| 114 std::string GetSubjectName(net::X509Certificate::OSCertHandle cert_handle) { |
| 115 // TODO(bulach): implement me. |
| 116 return ""; |
| 117 } |
| 118 |
| 119 void GetEmailAddresses(net::X509Certificate::OSCertHandle cert_handle, |
| 120 std::vector<std::string>* email_addresses) { |
| 121 // TODO(bulach): implement me. |
| 122 } |
| 123 |
| 124 void GetNicknameStringsFromCertList( |
| 125 const std::vector<scoped_refptr<net::X509Certificate> >& certs, |
| 126 const std::string& cert_expired, |
| 127 const std::string& cert_not_yet_valid, |
| 128 std::vector<std::string>* nick_names) { |
| 129 // TODO(bulach): implement me. |
| 130 } |
| 131 |
| 132 void GetExtensions( |
| 133 const std::string& critical_label, |
| 134 const std::string& non_critical_label, |
| 135 net::X509Certificate::OSCertHandle cert_handle, |
| 136 Extensions* extensions) { |
| 137 // TODO(bulach): implement me. |
| 138 } |
| 139 |
| 140 std::string HashCertSHA256(net::X509Certificate::OSCertHandle cert_handle) { |
| 141 // TODO(bulach): implement me. |
| 142 return ""; |
| 143 } |
| 144 |
| 145 std::string HashCertSHA1(net::X509Certificate::OSCertHandle cert_handle) { |
| 146 // TODO(bulach): implement me. |
| 147 return ""; |
| 148 } |
| 149 |
| 150 void GetCertChainFromCert(net::X509Certificate::OSCertHandle cert_handle, |
| 151 net::X509Certificate::OSCertHandles* cert_handles) { |
| 152 // TODO(bulach): implement me. |
| 153 } |
| 154 |
| 155 void DestroyCertChain(net::X509Certificate::OSCertHandles* cert_handles) { |
| 156 // TODO(bulach): implement me. |
| 157 } |
| 158 |
| 159 std::string GetDerString(net::X509Certificate::OSCertHandle cert_handle) { |
| 160 // TODO(bulach): implement me. |
| 161 return ""; |
| 162 } |
| 163 |
| 164 std::string GetCMSString(const net::X509Certificate::OSCertHandles& cert_chain, |
| 165 size_t start, size_t end) { |
| 166 // TODO(bulach): implement me. |
| 167 return ""; |
| 168 } |
| 169 |
| 170 std::string ProcessSecAlgorithmSignature( |
| 171 net::X509Certificate::OSCertHandle cert_handle) { |
| 172 // TODO(bulach): implement me. |
| 173 return ""; |
| 174 } |
| 175 |
| 176 std::string ProcessSecAlgorithmSubjectPublicKey( |
| 177 net::X509Certificate::OSCertHandle cert_handle) { |
| 178 // TODO(bulach): implement me. |
| 179 return ""; |
| 180 } |
| 181 |
| 182 std::string ProcessSecAlgorithmSignatureWrap( |
| 183 net::X509Certificate::OSCertHandle cert_handle) { |
| 184 // TODO(bulach): implement me. |
| 185 return ""; |
| 186 } |
| 187 |
| 188 std::string ProcessSubjectPublicKeyInfo( |
| 189 net::X509Certificate::OSCertHandle cert_handle) { |
| 190 // TODO(bulach): implement me. |
| 191 return ""; |
| 192 } |
| 193 |
| 194 std::string ProcessRawBitsSignatureWrap( |
| 195 net::X509Certificate::OSCertHandle cert_handle) { |
| 196 // TODO(bulach): implement me. |
| 197 return ""; |
| 198 } |
| 199 |
| 200 void RegisterDynamicOids() { |
| 201 } |
| 202 |
| 203 } // namespace x509_certificate_model |
OLD | NEW |