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

Side by Side Diff: net/base/x509_certificate_mac.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.cc ('k') | net/base/x509_certificate_nss.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 <CommonCrypto/CommonDigest.h> 7 #include <CommonCrypto/CommonDigest.h>
8 #include <CoreServices/CoreServices.h> 8 #include <CoreServices/CoreServices.h>
9 #include <Security/Security.h> 9 #include <Security/Security.h>
10 #include <time.h> 10 #include <time.h>
(...skipping 714 matching lines...) Expand 10 before | Expand all | Expand 10 after
725 if (result != CRLSet::REVOKED && !issuer_spki_hash.empty()) 725 if (result != CRLSet::REVOKED && !issuer_spki_hash.empty())
726 result = crl_set->CheckSerial(serial, issuer_spki_hash); 726 result = crl_set->CheckSerial(serial, issuer_spki_hash);
727 727
728 issuer_spki_hash = spki_hash; 728 issuer_spki_hash = spki_hash;
729 729
730 switch (result) { 730 switch (result) {
731 case CRLSet::REVOKED: 731 case CRLSet::REVOKED:
732 return false; 732 return false;
733 case CRLSet::UNKNOWN: 733 case CRLSet::UNKNOWN:
734 case CRLSet::GOOD: 734 case CRLSet::GOOD:
735 case CRLSet::CRL_SET_EXPIRED:
736 continue; 735 continue;
737 default: 736 default:
738 NOTREACHED(); 737 NOTREACHED();
739 return false; 738 return false;
740 } 739 }
741 } 740 }
742 741
743 return true; 742 return true;
744 } 743 }
745 744
(...skipping 877 matching lines...) Expand 10 before | Expand all | Expand 10 after
1623 *type = kPublicKeyTypeDH; 1622 *type = kPublicKeyTypeDH;
1624 break; 1623 break;
1625 default: 1624 default:
1626 *type = kPublicKeyTypeUnknown; 1625 *type = kPublicKeyTypeUnknown;
1627 *size_bits = 0; 1626 *size_bits = 0;
1628 break; 1627 break;
1629 } 1628 }
1630 } 1629 }
1631 1630
1632 } // namespace net 1631 } // namespace net
OLDNEW
« no previous file with comments | « net/base/x509_certificate.cc ('k') | net/base/x509_certificate_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698