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

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: 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
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);
Ryan Sleevi 2016/12/13 22:21:08 const char* const ?
davidben 2016/12/14 00:59:43 Returning const out of a function doesn't actually
15
16 // Tests that |key| matches the private key serialized in |pkcs8| on all
17 // properties and advertised signature algorithms. The caller is responsible for
Ryan Sleevi 2016/12/13 22:21:08 From reading only this header, I'm not sure what "
davidben 2016/12/14 00:59:43 Rephrased to be more explicit.
18 // asserting that |key|'s advertised algorithms are as expected.
19 void TestSSLPrivateKeyMatches(SSLPrivateKey* key, const std::string& pkcs8);
20
21 } // namespace net
22
23 #endif // NET_SSL_SSL_PRIVATE_KEY_TEST_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698