OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/openssl_client_key_store.h" | 5 #include "net/ssl/openssl_client_key_store.h" |
6 | 6 |
7 #include <openssl/evp.h> | 7 #include <openssl/evp.h> |
8 #include <openssl/x509.h> | 8 #include <openssl/x509.h> |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 | 110 |
111 return crypto::ScopedEVP_PKEY( | 111 return crypto::ScopedEVP_PKEY( |
112 EVP_PKEY_up_ref(pairs_[index].private_key.get())); | 112 EVP_PKEY_up_ref(pairs_[index].private_key.get())); |
113 } | 113 } |
114 | 114 |
115 void OpenSSLClientKeyStore::Flush() { | 115 void OpenSSLClientKeyStore::Flush() { |
116 pairs_.clear(); | 116 pairs_.clear(); |
117 } | 117 } |
118 | 118 |
119 OpenSSLClientKeyStore* OpenSSLClientKeyStore::GetInstance() { | 119 OpenSSLClientKeyStore* OpenSSLClientKeyStore::GetInstance() { |
120 return Singleton<OpenSSLClientKeyStore>::get(); | 120 return base::Singleton<OpenSSLClientKeyStore>::get(); |
121 } | 121 } |
122 | 122 |
123 } // namespace net | 123 } // namespace net |
124 | 124 |
125 | 125 |
OLD | NEW |