| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "net/ssl/ssl_platform_key_util.h" | 5 #include "net/ssl/ssl_platform_key_util.h" |
| 6 | 6 |
| 7 #include <openssl/bytestring.h> | |
| 8 #include <openssl/ec_key.h> | |
| 9 #include <openssl/evp.h> | |
| 10 | |
| 11 #include "base/lazy_instance.h" | 7 #include "base/lazy_instance.h" |
| 12 #include "base/logging.h" | 8 #include "base/logging.h" |
| 13 #include "base/macros.h" | 9 #include "base/macros.h" |
| 14 #include "base/strings/string_piece.h" | 10 #include "base/strings/string_piece.h" |
| 15 #include "base/threading/thread.h" | 11 #include "base/threading/thread.h" |
| 16 #include "crypto/openssl_util.h" | 12 #include "crypto/openssl_util.h" |
| 17 #include "net/cert/asn1_util.h" | 13 #include "net/cert/asn1_util.h" |
| 18 #include "net/cert/x509_certificate.h" | 14 #include "net/cert/x509_certificate.h" |
| 15 #include "third_party/boringssl/src/include/openssl/bytestring.h" |
| 16 #include "third_party/boringssl/src/include/openssl/ec_key.h" |
| 17 #include "third_party/boringssl/src/include/openssl/evp.h" |
| 19 | 18 |
| 20 namespace net { | 19 namespace net { |
| 21 | 20 |
| 22 namespace { | 21 namespace { |
| 23 | 22 |
| 24 class SSLPlatformKeyTaskRunner { | 23 class SSLPlatformKeyTaskRunner { |
| 25 public: | 24 public: |
| 26 SSLPlatformKeyTaskRunner() : worker_thread_("Platform Key Thread") { | 25 SSLPlatformKeyTaskRunner() : worker_thread_("Platform Key Thread") { |
| 27 base::Thread::Options options; | 26 base::Thread::Options options; |
| 28 options.joinable = false; | 27 options.joinable = false; |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 | 97 |
| 99 default: | 98 default: |
| 100 return false; | 99 return false; |
| 101 } | 100 } |
| 102 | 101 |
| 103 *out_max_length = EVP_PKEY_size(key.get()); | 102 *out_max_length = EVP_PKEY_size(key.get()); |
| 104 return true; | 103 return true; |
| 105 } | 104 } |
| 106 | 105 |
| 107 } // namespace net | 106 } // namespace net |
| OLD | NEW |