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

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

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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
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/cert/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 {
(...skipping 18 matching lines...) Expand all
29 return CERT_STATUS_NO_REVOCATION_MECHANISM; 29 return CERT_STATUS_NO_REVOCATION_MECHANISM;
30 case ERR_CERT_UNABLE_TO_CHECK_REVOCATION: 30 case ERR_CERT_UNABLE_TO_CHECK_REVOCATION:
31 return CERT_STATUS_UNABLE_TO_CHECK_REVOCATION; 31 return CERT_STATUS_UNABLE_TO_CHECK_REVOCATION;
32 case ERR_CERT_REVOKED: 32 case ERR_CERT_REVOKED:
33 return CERT_STATUS_REVOKED; 33 return CERT_STATUS_REVOKED;
34 // We added the ERR_CERT_CONTAINS_ERRORS error code when we were using 34 // We added the ERR_CERT_CONTAINS_ERRORS error code when we were using
35 // WinInet, but we never figured out how it differs from ERR_CERT_INVALID. 35 // WinInet, but we never figured out how it differs from ERR_CERT_INVALID.
36 // We should not use ERR_CERT_CONTAINS_ERRORS in new code. 36 // We should not use ERR_CERT_CONTAINS_ERRORS in new code.
37 case ERR_CERT_CONTAINS_ERRORS: 37 case ERR_CERT_CONTAINS_ERRORS:
38 NOTREACHED(); 38 NOTREACHED();
39 // Falls through. 39 // Falls through.
40 case ERR_CERT_INVALID: 40 case ERR_CERT_INVALID:
41 return CERT_STATUS_INVALID; 41 return CERT_STATUS_INVALID;
42 case ERR_CERT_WEAK_SIGNATURE_ALGORITHM: 42 case ERR_CERT_WEAK_SIGNATURE_ALGORITHM:
43 return CERT_STATUS_WEAK_SIGNATURE_ALGORITHM; 43 return CERT_STATUS_WEAK_SIGNATURE_ALGORITHM;
44 case ERR_CERT_NON_UNIQUE_NAME: 44 case ERR_CERT_NON_UNIQUE_NAME:
45 return CERT_STATUS_NON_UNIQUE_NAME; 45 return CERT_STATUS_NON_UNIQUE_NAME;
46 case ERR_CERT_WEAK_KEY: 46 case ERR_CERT_WEAK_KEY:
47 return CERT_STATUS_WEAK_KEY; 47 return CERT_STATUS_WEAK_KEY;
48 case ERR_SSL_PINNED_KEY_NOT_IN_CERT_CHAIN: 48 case ERR_SSL_PINNED_KEY_NOT_IN_CERT_CHAIN:
49 return CERT_STATUS_PINNED_KEY_MISSING; 49 return CERT_STATUS_PINNED_KEY_MISSING;
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 if (cert_status & CERT_STATUS_UNABLE_TO_CHECK_REVOCATION) 86 if (cert_status & CERT_STATUS_UNABLE_TO_CHECK_REVOCATION)
87 return ERR_CERT_UNABLE_TO_CHECK_REVOCATION; 87 return ERR_CERT_UNABLE_TO_CHECK_REVOCATION;
88 if (cert_status & CERT_STATUS_NO_REVOCATION_MECHANISM) 88 if (cert_status & CERT_STATUS_NO_REVOCATION_MECHANISM)
89 return ERR_CERT_NO_REVOCATION_MECHANISM; 89 return ERR_CERT_NO_REVOCATION_MECHANISM;
90 90
91 NOTREACHED(); 91 NOTREACHED();
92 return ERR_UNEXPECTED; 92 return ERR_UNEXPECTED;
93 } 93 }
94 94
95 } // namespace net 95 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698