| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |