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 "crypto/openssl_util.h" | 5 #include "crypto/openssl_util.h" |
6 | 6 |
7 #include <openssl/err.h> | 7 #include <openssl/err.h> |
8 #include <openssl/ssl.h> | 8 #include <openssl/ssl.h> |
9 #include <openssl/cpu.h> | 9 #include <openssl/cpu.h> |
| 10 #include <stddef.h> |
| 11 #include <stdint.h> |
10 | 12 |
11 #include "base/logging.h" | 13 #include "base/logging.h" |
| 14 #include "base/macros.h" |
12 #include "base/memory/singleton.h" | 15 #include "base/memory/singleton.h" |
13 #include "base/strings/string_piece.h" | 16 #include "base/strings/string_piece.h" |
14 #include "build/build_config.h" | 17 #include "build/build_config.h" |
15 | 18 |
16 #if defined(OS_ANDROID) && defined(ARCH_CPU_ARMEL) | 19 #if defined(OS_ANDROID) && defined(ARCH_CPU_ARMEL) |
17 #include <cpu-features.h> | 20 #include <cpu-features.h> |
18 #include "base/cpu.h" | 21 #include "base/cpu.h" |
19 #endif | 22 #endif |
20 | 23 |
21 namespace crypto { | 24 namespace crypto { |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 std::string message; | 94 std::string message; |
92 location.Write(true, true, &message); | 95 location.Write(true, true, &message); |
93 DVLOG(1) << "OpenSSL ERR_get_error stack from " << message; | 96 DVLOG(1) << "OpenSSL ERR_get_error stack from " << message; |
94 ERR_print_errors_cb(&OpenSSLErrorCallback, NULL); | 97 ERR_print_errors_cb(&OpenSSLErrorCallback, NULL); |
95 } else { | 98 } else { |
96 ERR_clear_error(); | 99 ERR_clear_error(); |
97 } | 100 } |
98 } | 101 } |
99 | 102 |
100 } // namespace crypto | 103 } // namespace crypto |
OLD | NEW |