| 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 // Defines an in-memory private key store, primarily used for testing. | 5 // Defines an in-memory private key store, primarily used for testing. |
| 6 | 6 |
| 7 #include <openssl/evp.h> | 7 #include <openssl/evp.h> |
| 8 | 8 |
| 9 #include "net/base/openssl_private_key_store.h" | 9 #include "net/base/openssl_private_key_store.h" |
| 10 | 10 |
| 11 #include "base/logging.h" | 11 #include "base/logging.h" |
| 12 #include "base/memory/singleton.h" | 12 #include "base/memory/singleton.h" |
| 13 #include "base/openssl_util.h" | |
| 14 #include "base/synchronization/lock.h" | 13 #include "base/synchronization/lock.h" |
| 15 #include "net/base/x509_certificate.h" | 14 #include "net/base/x509_certificate.h" |
| 16 | 15 |
| 17 namespace net { | 16 namespace net { |
| 18 | 17 |
| 19 namespace { | 18 namespace { |
| 20 | 19 |
| 21 class OpenSSLMemoryKeyStore : public OpenSSLPrivateKeyStore { | 20 class OpenSSLMemoryKeyStore : public OpenSSLPrivateKeyStore { |
| 22 public: | 21 public: |
| 23 OpenSSLMemoryKeyStore() {} | 22 OpenSSLMemoryKeyStore() {} |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 | 59 |
| 61 } // namespace | 60 } // namespace |
| 62 | 61 |
| 63 // static | 62 // static |
| 64 OpenSSLPrivateKeyStore* OpenSSLPrivateKeyStore::GetInstance() { | 63 OpenSSLPrivateKeyStore* OpenSSLPrivateKeyStore::GetInstance() { |
| 65 return OpenSSLMemoryKeyStore::GetInstance(); | 64 return OpenSSLMemoryKeyStore::GetInstance(); |
| 66 } | 65 } |
| 67 | 66 |
| 68 } // namespace net | 67 } // namespace net |
| 69 | 68 |
| OLD | NEW |