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

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

Issue 14915: Move certificate verification off the IO thread.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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
« no previous file with comments | « no previous file | net/base/cert_status_flags.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_STATUS_FLAGS_H_ 5 #ifndef NET_BASE_CERT_STATUS_FLAGS_H_
6 #define NET_BASE_CERT_STATUS_FLAGS_H_ 6 #define NET_BASE_CERT_STATUS_FLAGS_H_
7 7
8 namespace net { 8 namespace net {
9 9
10 // Status flags, such as errors and extended validation. 10 // Status flags, such as errors and extended validation.
(...skipping 15 matching lines...) Expand all
26 26
27 // 1 << 31 (the sign bit) is reserved so that the cert status will never be 27 // 1 << 31 (the sign bit) is reserved so that the cert status will never be
28 // negative. 28 // negative.
29 }; 29 };
30 30
31 // Returns true if the specified cert status has an error set. 31 // Returns true if the specified cert status has an error set.
32 static inline bool IsCertStatusError(int status) { 32 static inline bool IsCertStatusError(int status) {
33 return (CERT_STATUS_ALL_ERRORS & status) != 0; 33 return (CERT_STATUS_ALL_ERRORS & status) != 0;
34 } 34 }
35 35
36 // Maps a network error code to the equivalent certificate status flag. If
37 // the error code is not a certificate error, it is mapped to 0.
38 int MapNetErrorToCertStatus(int error);
39
40 // Maps the most serious certificate error in the certificate status flags
41 // to the equivalent network error code.
42 int MapCertStatusToNetError(int cert_status);
43
36 } // namespace net 44 } // namespace net
37 45
38 #endif // NET_BASE_CERT_STATUS_FLAGS_H_ 46 #endif // NET_BASE_CERT_STATUS_FLAGS_H_
39 47
OLDNEW
« no previous file with comments | « no previous file | net/base/cert_status_flags.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698