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