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

Side by Side Diff: net/cert/cert_status_flags.cc

Issue 13006020: net: extract net/cert out of net/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 8 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 | « net/cert/cert_status_flags.h ('k') | net/cert/cert_trust_anchor_provider.h » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/cert_status_flags.h" 5 #include "net/cert/cert_status_flags.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "net/base/net_errors.h" 8 #include "net/base/net_errors.h"
9 9
10 namespace net { 10 namespace net {
11 11
12 bool IsCertStatusMinorError(CertStatus cert_status) { 12 bool IsCertStatusMinorError(CertStatus cert_status) {
13 static const CertStatus kMinorErrors = 13 static const CertStatus kMinorErrors =
14 CERT_STATUS_UNABLE_TO_CHECK_REVOCATION | 14 CERT_STATUS_UNABLE_TO_CHECK_REVOCATION |
15 CERT_STATUS_NO_REVOCATION_MECHANISM; 15 CERT_STATUS_NO_REVOCATION_MECHANISM;
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 if (cert_status & CERT_STATUS_UNABLE_TO_CHECK_REVOCATION) 74 if (cert_status & CERT_STATUS_UNABLE_TO_CHECK_REVOCATION)
75 return ERR_CERT_UNABLE_TO_CHECK_REVOCATION; 75 return ERR_CERT_UNABLE_TO_CHECK_REVOCATION;
76 if (cert_status & CERT_STATUS_NO_REVOCATION_MECHANISM) 76 if (cert_status & CERT_STATUS_NO_REVOCATION_MECHANISM)
77 return ERR_CERT_NO_REVOCATION_MECHANISM; 77 return ERR_CERT_NO_REVOCATION_MECHANISM;
78 78
79 NOTREACHED(); 79 NOTREACHED();
80 return ERR_UNEXPECTED; 80 return ERR_UNEXPECTED;
81 } 81 }
82 82
83 } // namespace net 83 } // namespace net
OLDNEW
« no previous file with comments | « net/cert/cert_status_flags.h ('k') | net/cert/cert_trust_anchor_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698