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

Side by Side Diff: net/base/x509_certificate_nss.cc

Issue 9699043: net: fallback to online revocation checks for EV status when CRLSet has expired. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... Created 8 years, 9 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/base/x509_certificate_mac.cc ('k') | net/base/x509_certificate_unittest.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) 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 #include "net/base/x509_certificate.h" 5 #include "net/base/x509_certificate.h"
6 6
7 #include <cert.h> 7 #include <cert.h>
8 #include <cryptohi.h> 8 #include <cryptohi.h>
9 #include <keyhi.h> 9 #include <keyhi.h>
10 #include <nss.h> 10 #include <nss.h>
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 if (result != CRLSet::REVOKED && !issuer_spki_hash.empty()) 309 if (result != CRLSet::REVOKED && !issuer_spki_hash.empty())
310 result = crl_set->CheckSerial(serial_number, issuer_spki_hash); 310 result = crl_set->CheckSerial(serial_number, issuer_spki_hash);
311 311
312 issuer_spki_hash = spki_hash; 312 issuer_spki_hash = spki_hash;
313 313
314 switch (result) { 314 switch (result) {
315 case CRLSet::REVOKED: 315 case CRLSet::REVOKED:
316 return kCRLSetRevoked; 316 return kCRLSetRevoked;
317 case CRLSet::UNKNOWN: 317 case CRLSet::UNKNOWN:
318 case CRLSet::GOOD: 318 case CRLSet::GOOD:
319 case CRLSet::CRL_SET_EXPIRED:
320 continue; 319 continue;
321 default: 320 default:
322 NOTREACHED(); 321 NOTREACHED();
323 return kCRLSetError; 322 return kCRLSetError;
324 } 323 }
325 } 324 }
326 325
327 return kCRLSetOk; 326 return kCRLSetOk;
328 } 327 }
329 328
(...skipping 888 matching lines...) Expand 10 before | Expand all | Expand 10 after
1218 *type = kPublicKeyTypeECDSA; 1217 *type = kPublicKeyTypeECDSA;
1219 break; 1218 break;
1220 default: 1219 default:
1221 *type = kPublicKeyTypeUnknown; 1220 *type = kPublicKeyTypeUnknown;
1222 *size_bits = 0; 1221 *size_bits = 0;
1223 break; 1222 break;
1224 } 1223 }
1225 } 1224 }
1226 1225
1227 } // namespace net 1226 } // namespace net
OLDNEW
« no previous file with comments | « net/base/x509_certificate_mac.cc ('k') | net/base/x509_certificate_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698