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

Side by Side Diff: net/base/ssl_client_auth_cache.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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/base/ssl_client_auth_cache.h" 5 #include "net/base/ssl_client_auth_cache.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "net/base/x509_certificate.h" 8 #include "net/base/x509_certificate.h"
9 9
10 namespace net { 10 namespace net {
(...skipping 19 matching lines...) Expand all
30 X509Certificate* value) { 30 X509Certificate* value) {
31 cache_[server] = value; 31 cache_[server] = value;
32 32
33 // TODO(wtc): enforce a maximum number of entries. 33 // TODO(wtc): enforce a maximum number of entries.
34 } 34 }
35 35
36 void SSLClientAuthCache::Remove(const std::string& server) { 36 void SSLClientAuthCache::Remove(const std::string& server) {
37 cache_.erase(server); 37 cache_.erase(server);
38 } 38 }
39 39
40 void SSLClientAuthCache::Clear() {
41 cache_.clear();
42 }
43
40 } // namespace net 44 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698