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