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

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

Issue 2898573002: Refactor client cert private key handling. (Closed)
Patch Set: removed no longer needed forward declaration Created 3 years, 6 months 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/client_cert_identity.cc ('k') | net/ssl/client_cert_identity_mac.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 2017 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_CLIENT_CERT_IDENTITY_MAC_H_
6 #define NET_SSL_SSL_CLIENT_CERT_IDENTITY_MAC_H_
7
8 #include "net/ssl/client_cert_identity.h"
9
10 #include <Security/SecBase.h>
11
12 #include "base/mac/scoped_cftyperef.h"
13 #include "net/base/net_export.h"
14
15 namespace net {
16
17 class NET_EXPORT_PRIVATE ClientCertIdentityMac : public ClientCertIdentity {
18 public:
19 ClientCertIdentityMac(scoped_refptr<net::X509Certificate> cert,
20 base::ScopedCFTypeRef<SecIdentityRef> sec_identity);
21 ~ClientCertIdentityMac() override;
22
23 void AcquirePrivateKey(
24 const base::Callback<void(scoped_refptr<SSLPrivateKey>)>&
25 private_key_callback) override;
26 SecIdentityRef sec_identity_ref() const override;
27
28 private:
29 base::ScopedCFTypeRef<SecIdentityRef> identity_;
30 };
31
32 } // namespace net
33
34 #endif // NET_SSL_SSL_CLIENT_CERT_IDENTITY_MAC_H_
OLDNEW
« no previous file with comments | « net/ssl/client_cert_identity.cc ('k') | net/ssl/client_cert_identity_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698