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

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

Issue 10825211: Implement SHA-256 fingerprint support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 4 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) 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_BASE_CERT_VERIFY_PROC_H_ 5 #ifndef NET_BASE_CERT_VERIFY_PROC_H_
6 #define NET_BASE_CERT_VERIFY_PROC_H_ 6 #define NET_BASE_CERT_VERIFY_PROC_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 virtual int VerifyInternal(X509Certificate* cert, 68 virtual int VerifyInternal(X509Certificate* cert,
69 const std::string& hostname, 69 const std::string& hostname,
70 int flags, 70 int flags,
71 CRLSet* crl_set, 71 CRLSet* crl_set,
72 CertVerifyResult* verify_result) = 0; 72 CertVerifyResult* verify_result) = 0;
73 73
74 // Returns true if |cert| is explicitly blacklisted. 74 // Returns true if |cert| is explicitly blacklisted.
75 static bool IsBlacklisted(X509Certificate* cert); 75 static bool IsBlacklisted(X509Certificate* cert);
76 76
77 // IsPublicKeyBlacklisted returns true iff one of |public_key_hashes| (which 77 // IsPublicKeyBlacklisted returns true iff one of |public_key_hashes| (which
78 // are SHA1 hashes of SubjectPublicKeyInfo structures) is explicitly blocked. 78 // are hashes of SubjectPublicKeyInfo structures) is explicitly blocked.
79 static bool IsPublicKeyBlacklisted( 79 static bool IsPublicKeyBlacklisted(
80 const std::vector<SHA1Fingerprint>& public_key_hashes); 80 const std::vector<HashValueVector>& public_key_hashes);
81 }; 81 };
82 82
83 } // namespace net 83 } // namespace net
84 84
85 #endif // NET_BASE_CERT_VERIFY_PROC_H_ 85 #endif // NET_BASE_CERT_VERIFY_PROC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698