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

Side by Side Diff: net/ssl/ssl_platform_key_mac.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_PLATFORM_KEY_MAC_H_
6 #define NET_SSL_SSL_PLATFORM_KEY_MAC_H_
7
8 #include <Security/SecBase.h>
9
10 #include "base/memory/ref_counted.h"
11 #include "net/base/net_export.h"
12
13 namespace net {
14
15 class SSLPrivateKey;
16 class X509Certificate;
17
18 // Looks up the private key from |keychain| corresponding to |certificate|'s
19 // public key and returns an SSLPrivateKey backed by the playform key. If
Ryan Sleevi 2016/12/13 22:21:07 // Returns an SSLPrivateKey backed by the platform
davidben 2016/12/14 00:59:43 Done. Also updated the ssl_platform_key.h copy.
20 // |keychain| is nullptr, the user's default search list is used instead.
Ryan Sleevi 2016/12/13 22:21:07 s/the user's/the process's/ ?
davidben 2016/12/14 00:59:43 Done.
21 NET_EXPORT_PRIVATE scoped_refptr<SSLPrivateKey>
Ryan Sleevi 2016/12/13 22:21:07 Any documentation about threading? e.g. "Note: T
davidben 2016/12/14 00:59:43 Unfortunately, this is currently called on the IO
22 FetchClientCertPrivateKeyFromKeychain(X509Certificate* certificate,
Ryan Sleevi 2016/12/13 22:21:07 nit: const?
davidben 2016/12/14 00:59:43 Done.
23 SecKeychainRef keychain);
24
25 } // namespace net
26
27 #endif // NET_SSL_SSL_PLATFORM_KEY_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698