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

Side by Side Diff: net/cert/cert_verify_proc.h

Issue 15203007: Warn if a well-known/"public" CA issues a certificate for a non-TLD (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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
« no previous file with comments | « no previous file | net/cert/cert_verify_proc.cc » ('j') | net/cert/cert_verify_proc_unittest.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef NET_CERT_CERT_VERIFY_PROC_H_ 5 #ifndef NET_CERT_CERT_VERIFY_PROC_H_
6 #define NET_CERT_CERT_VERIFY_PROC_H_ 6 #define NET_CERT_CERT_VERIFY_PROC_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 CRLSet* crl_set, 82 CRLSet* crl_set,
83 const CertificateList& additional_trust_anchors, 83 const CertificateList& additional_trust_anchors,
84 CertVerifyResult* verify_result) = 0; 84 CertVerifyResult* verify_result) = 0;
85 85
86 // Returns true if |cert| is explicitly blacklisted. 86 // Returns true if |cert| is explicitly blacklisted.
87 static bool IsBlacklisted(X509Certificate* cert); 87 static bool IsBlacklisted(X509Certificate* cert);
88 88
89 // IsPublicKeyBlacklisted returns true iff one of |public_key_hashes| (which 89 // IsPublicKeyBlacklisted returns true iff one of |public_key_hashes| (which
90 // are hashes of SubjectPublicKeyInfo structures) is explicitly blocked. 90 // are hashes of SubjectPublicKeyInfo structures) is explicitly blocked.
91 static bool IsPublicKeyBlacklisted(const HashValueVector& public_key_hashes); 91 static bool IsPublicKeyBlacklisted(const HashValueVector& public_key_hashes);
92
93 DISALLOW_COPY_AND_ASSIGN(CertVerifyProc);
92 }; 94 };
93 95
94 } // namespace net 96 } // namespace net
95 97
96 #endif // NET_CERT_CERT_VERIFY_PROC_H_ 98 #endif // NET_CERT_CERT_VERIFY_PROC_H_
OLDNEW
« no previous file with comments | « no previous file | net/cert/cert_verify_proc.cc » ('j') | net/cert/cert_verify_proc_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698