| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef NET_SSL_SSL_PRIVATE_KEY_TEST_UTIL_H_ |
| 6 #define NET_SSL_SSL_PRIVATE_KEY_TEST_UTIL_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "net/ssl/ssl_private_key.h" |
| 11 |
| 12 namespace net { |
| 13 |
| 14 const char* SSLPrivateKeyTypeToString(SSLPrivateKey::Type type); |
| 15 |
| 16 // Tests that |key| matches the private key serialized in |pkcs8|. It checks the |
| 17 // reported type and key size are correct, and then it tests all advertised |
| 18 // signature algorithms align with |pkcs8|. It does not test unadvertised |
| 19 // algorithms, so the caller must check this list is as expected. |
| 20 void TestSSLPrivateKeyMatches(SSLPrivateKey* key, const std::string& pkcs8); |
| 21 |
| 22 } // namespace net |
| 23 |
| 24 #endif // NET_SSL_SSL_PRIVATE_KEY_TEST_UTIL_H_ |
| OLD | NEW |