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 #ifndef NET_SSL_OPENSSL_CLIENT_KEY_STORE_H_ | 5 #ifndef NET_SSL_OPENSSL_CLIENT_KEY_STORE_H_ |
6 #define NET_SSL_OPENSSL_CLIENT_KEY_STORE_H_ | 6 #define NET_SSL_OPENSSL_CLIENT_KEY_STORE_H_ |
7 | 7 |
8 #include <openssl/evp.h> | 8 #include <openssl/evp.h> |
9 | 9 |
10 #include <vector> | 10 #include <vector> |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 | 83 |
84 private: | 84 private: |
85 KeyPair(); // intentionally not implemented. | 85 KeyPair(); // intentionally not implemented. |
86 }; | 86 }; |
87 | 87 |
88 // Returns the index of the keypair for |public_key|. or -1 if not found. | 88 // Returns the index of the keypair for |public_key|. or -1 if not found. |
89 int FindKeyPairIndex(EVP_PKEY* public_key); | 89 int FindKeyPairIndex(EVP_PKEY* public_key); |
90 | 90 |
91 std::vector<KeyPair> pairs_; | 91 std::vector<KeyPair> pairs_; |
92 | 92 |
93 friend struct DefaultSingletonTraits<OpenSSLClientKeyStore>; | 93 friend struct base::DefaultSingletonTraits<OpenSSLClientKeyStore>; |
94 | 94 |
95 DISALLOW_COPY_AND_ASSIGN(OpenSSLClientKeyStore); | 95 DISALLOW_COPY_AND_ASSIGN(OpenSSLClientKeyStore); |
96 }; | 96 }; |
97 | 97 |
98 } // namespace net | 98 } // namespace net |
99 | 99 |
100 #endif // NET_SSL_OPENSSL_CLIENT_KEY_STORE_H_ | 100 #endif // NET_SSL_OPENSSL_CLIENT_KEY_STORE_H_ |
OLD | NEW |