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

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

Issue 10545166: Support SHA-256 in public key pins for HTTPS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 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 | 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 virtual int VerifyInternal(X509Certificate* cert, 69 virtual int VerifyInternal(X509Certificate* cert,
70 const std::string& hostname, 70 const std::string& hostname,
71 int flags, 71 int flags,
72 CRLSet* crl_set, 72 CRLSet* crl_set,
73 CertVerifyResult* verify_result) = 0; 73 CertVerifyResult* verify_result) = 0;
74 74
75 // Returns true if |cert| is explicitly blacklisted. 75 // Returns true if |cert| is explicitly blacklisted.
76 static bool IsBlacklisted(X509Certificate* cert); 76 static bool IsBlacklisted(X509Certificate* cert);
77 77
78 // IsPublicKeyBlacklisted returns true iff one of |public_key_hashes| (which 78 // IsPublicKeyBlacklisted returns true iff one of |public_key_hashes| (which
79 // are SHA1 hashes of SubjectPublicKeyInfo structures) is explicitly blocked. 79 // are hashes of SubjectPublicKeyInfo structures) is explicitly blocked.
80 static bool IsPublicKeyBlacklisted( 80 static bool IsPublicKeyBlacklisted(
81 const std::vector<SHA1Fingerprint>& public_key_hashes); 81 const std::vector<Fingerprint>& public_key_hashes);
82 }; 82 };
83 83
84 } // namespace net 84 } // namespace net
85 85
86 #endif // NET_BASE_CERT_VERIFY_PROC_H_ 86 #endif // NET_BASE_CERT_VERIFY_PROC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698