| 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/mem.h> | 7 #include <openssl/mem.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/stack.h> | 10 #include <openssl/stack.h> |
| 11 #include <openssl/x509.h> | 11 #include <openssl/x509.h> |
| 12 #include <openssl/x509v3.h> | 12 #include <openssl/x509v3.h> |
| 13 #include <stddef.h> |
| 14 #include <stdint.h> |
| 13 | 15 |
| 14 #include "base/i18n/number_formatting.h" | 16 #include "base/i18n/number_formatting.h" |
| 15 #include "base/lazy_instance.h" | 17 #include "base/lazy_instance.h" |
| 16 #include "base/logging.h" | 18 #include "base/logging.h" |
| 19 #include "base/macros.h" |
| 17 #include "base/strings/string_number_conversions.h" | 20 #include "base/strings/string_number_conversions.h" |
| 18 #include "base/strings/stringprintf.h" | 21 #include "base/strings/stringprintf.h" |
| 19 #include "base/strings/utf_string_conversions.h" | 22 #include "base/strings/utf_string_conversions.h" |
| 20 #include "chrome/grit/generated_resources.h" | 23 #include "chrome/grit/generated_resources.h" |
| 21 #include "crypto/openssl_bio_string.h" | 24 #include "crypto/openssl_bio_string.h" |
| 22 #include "crypto/openssl_util.h" | 25 #include "crypto/openssl_util.h" |
| 23 #include "crypto/scoped_openssl_types.h" | 26 #include "crypto/scoped_openssl_types.h" |
| 24 #include "net/base/address_family.h" | 27 #include "net/base/address_family.h" |
| 25 #include "net/base/net_util.h" | 28 #include "net/base/net_util.h" |
| 26 #include "net/cert/x509_util_openssl.h" | 29 #include "net/cert/x509_util_openssl.h" |
| (...skipping 1178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1205 return rv; | 1208 return rv; |
| 1206 } | 1209 } |
| 1207 } | 1210 } |
| 1208 | 1211 |
| 1209 std::string ProcessRawBitsSignatureWrap( | 1212 std::string ProcessRawBitsSignatureWrap( |
| 1210 net::X509Certificate::OSCertHandle cert_handle) { | 1213 net::X509Certificate::OSCertHandle cert_handle) { |
| 1211 return ProcessRawAsn1String(cert_handle->signature); | 1214 return ProcessRawAsn1String(cert_handle->signature); |
| 1212 } | 1215 } |
| 1213 | 1216 |
| 1214 } // namespace x509_certificate_model | 1217 } // namespace x509_certificate_model |
| OLD | NEW |