Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(178)

Side by Side Diff: net/ssl/ssl_private_key_test_util.h

Issue 2566273008: Use SecKeyCreateSignature on macOS 10.12 and later. (Closed)
Patch Set: rsleevi comments Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/ssl/ssl_platform_key_win.cc ('k') | net/ssl/ssl_private_key_test_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « net/ssl/ssl_platform_key_win.cc ('k') | net/ssl/ssl_private_key_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698