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/stack.h> | 9 #include <openssl/stack.h> |
10 #include <openssl/x509.h> | 10 #include <openssl/x509.h> |
11 #include <openssl/x509v3.h> | 11 #include <openssl/x509v3.h> |
12 | 12 |
13 #include "base/i18n/number_formatting.h" | 13 #include "base/i18n/number_formatting.h" |
14 #include "base/lazy_instance.h" | 14 #include "base/lazy_instance.h" |
15 #include "base/logging.h" | 15 #include "base/logging.h" |
16 #include "base/strings/string_number_conversions.h" | 16 #include "base/strings/string_number_conversions.h" |
17 #include "base/strings/stringprintf.h" | 17 #include "base/strings/stringprintf.h" |
18 #include "base/strings/utf_string_conversions.h" | 18 #include "base/strings/utf_string_conversions.h" |
| 19 #include "chrome/grit/generated_resources.h" |
19 #include "crypto/openssl_bio_string.h" | 20 #include "crypto/openssl_bio_string.h" |
20 #include "crypto/openssl_util.h" | 21 #include "crypto/openssl_util.h" |
21 #include "crypto/scoped_openssl_types.h" | 22 #include "crypto/scoped_openssl_types.h" |
22 #include "grit/generated_resources.h" | |
23 #include "net/base/net_util.h" | 23 #include "net/base/net_util.h" |
24 #include "net/cert/x509_util_openssl.h" | 24 #include "net/cert/x509_util_openssl.h" |
25 #include "ui/base/l10n/l10n_util.h" | 25 #include "ui/base/l10n/l10n_util.h" |
26 | 26 |
27 namespace x509_util = net::x509_util; | 27 namespace x509_util = net::x509_util; |
28 | 28 |
29 namespace x509_certificate_model { | 29 namespace x509_certificate_model { |
30 | 30 |
31 namespace { | 31 namespace { |
32 | 32 |
(...skipping 1185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1218 return rv; | 1218 return rv; |
1219 } | 1219 } |
1220 } | 1220 } |
1221 | 1221 |
1222 std::string ProcessRawBitsSignatureWrap( | 1222 std::string ProcessRawBitsSignatureWrap( |
1223 net::X509Certificate::OSCertHandle cert_handle) { | 1223 net::X509Certificate::OSCertHandle cert_handle) { |
1224 return ProcessRawAsn1String(cert_handle->signature); | 1224 return ProcessRawAsn1String(cert_handle->signature); |
1225 } | 1225 } |
1226 | 1226 |
1227 } // namespace x509_certificate_model | 1227 } // namespace x509_certificate_model |
OLD | NEW |