| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_BASE_OPENSSL_PRIVATE_KEY_STORE_H_ | 5 #ifndef NET_BASE_OPENSSL_PRIVATE_KEY_STORE_H_ |
| 6 #define NET_BASE_OPENSSL_PRIVATE_KEY_STORE_H_ | 6 #define NET_BASE_OPENSSL_PRIVATE_KEY_STORE_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 // Avoid including <openssl/evp.h> | 10 // Avoid including <openssl/evp.h> |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 // Checks that the private key for a given public key is installed. | 37 // Checks that the private key for a given public key is installed. |
| 38 // |pub_key| a public key. | 38 // |pub_key| a public key. |
| 39 // Returns true if there is a private key that was previously | 39 // Returns true if there is a private key that was previously |
| 40 // recorded through StoreKeyPair(). | 40 // recorded through StoreKeyPair(). |
| 41 // NOTE: Intentionally not implemented on Android because there is no | 41 // NOTE: Intentionally not implemented on Android because there is no |
| 42 // platform API that can perform this operation silently. | 42 // platform API that can perform this operation silently. |
| 43 static bool HasPrivateKey(EVP_PKEY* pub_key); | 43 static bool HasPrivateKey(EVP_PKEY* pub_key); |
| 44 | 44 |
| 45 private: | 45 private: |
| 46 OpenSSLPrivateKeyStore(); // not implemented. | 46 OpenSSLPrivateKeyStore(); // not implemented. |
| 47 ~OpenSSLPrivateKeyStore(); // not implemented. | 47 ~OpenSSLPrivateKeyStore(); // not implemented. |
| 48 DISALLOW_COPY_AND_ASSIGN(OpenSSLPrivateKeyStore); | 48 DISALLOW_COPY_AND_ASSIGN(OpenSSLPrivateKeyStore); |
| 49 }; | 49 }; |
| 50 | 50 |
| 51 } // namespace net | 51 } // namespace net |
| 52 | 52 |
| 53 #endif // NET_BASE_OPENSSL_PRIVATE_KEY_STORE_H_ | 53 #endif // NET_BASE_OPENSSL_PRIVATE_KEY_STORE_H_ |
| OLD | NEW |