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

Side by Side Diff: net/socket/ssl_client_socket_mac_factory.cc

Issue 6487012: Clear the SSL Client Auth cache when a new SSL Client Certificate is... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/socket/client_socket_factory.h" 5 #include "net/socket/client_socket_factory.h"
6 6
7 #include "net/socket/ssl_client_socket_mac.h" 7 #include "net/socket/ssl_client_socket_mac.h"
8 #include "net/socket/ssl_host_info.h" 8 #include "net/socket/ssl_host_info.h"
9 9
10 namespace net { 10 namespace net {
11 11
12 SSLClientSocket* SSLClientSocketMacFactory( 12 SSLClientSocket* SSLClientSocketMacFactory(
13 ClientSocketHandle* transport_socket, 13 ClientSocketHandle* transport_socket,
14 const HostPortPair& host_and_port, 14 const HostPortPair& host_and_port,
15 const SSLConfig& ssl_config, 15 const SSLConfig& ssl_config,
16 SSLHostInfo* ssl_host_info, 16 SSLHostInfo* ssl_host_info,
17 CertVerifier* cert_verifier, 17 CertVerifier* cert_verifier,
18 DnsCertProvenanceChecker* dns_cert_checker) { 18 DnsCertProvenanceChecker* dns_cert_checker) {
19 delete ssl_host_info; 19 delete ssl_host_info;
20 return new SSLClientSocketMac(transport_socket, host_and_port, ssl_config, 20 return new SSLClientSocketMac(transport_socket, host_and_port, ssl_config,
21 cert_verifier); 21 cert_verifier);
22 } 22 }
23 23
24 void UseSystemSSLProvider() {
25 ClientSocketFactory::SetSSLClientSocketFactory(
26 SSLClientSocketMacFactory);
27 ClientSocketFactory::SetClearSSLSessionCache(
28 ClientSocketFactory::DefaultClearSSLSessionCache);
wtc 2011/02/15 20:50:40 BUG: this is wrong. If the SSL client factory cre
29 }
30
24 } // namespace net 31 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698