| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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/internal/verify_certificate_chain.h" | 5 #include "net/cert/internal/verify_certificate_chain.h" |
| 6 | 6 |
| 7 #include "net/cert/internal/parsed_certificate.h" | 7 #include "net/cert/internal/parsed_certificate.h" |
| 8 #include "net/cert/internal/signature_policy.h" | 8 #include "net/cert/internal/signature_policy.h" |
| 9 #include "net/cert/internal/trust_store.h" | 9 #include "net/cert/internal/trust_store.h" |
| 10 #include "net/der/input.h" | 10 #include "net/der/input.h" |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 return false; | 73 return false; |
| 74 } | 74 } |
| 75 } | 75 } |
| 76 | 76 |
| 77 SimpleSignaturePolicy signature_policy(1024); | 77 SimpleSignaturePolicy signature_policy(1024); |
| 78 | 78 |
| 79 // Run all tests at the time the PKITS was published. | 79 // Run all tests at the time the PKITS was published. |
| 80 der::GeneralizedTime time = {2011, 4, 15, 0, 0, 0}; | 80 der::GeneralizedTime time = {2011, 4, 15, 0, 0, 0}; |
| 81 | 81 |
| 82 return VerifyCertificateChain(input_chain, trust_store, &signature_policy, | 82 return VerifyCertificateChain(input_chain, trust_store, &signature_policy, |
| 83 time); | 83 time, nullptr); |
| 84 } | 84 } |
| 85 }; | 85 }; |
| 86 | 86 |
| 87 } // namespace | 87 } // namespace |
| 88 | 88 |
| 89 class PkitsTest01SignatureVerificationCustom | 89 class PkitsTest01SignatureVerificationCustom |
| 90 : public PkitsTest<VerifyCertificateChainPkitsTestDelegate> {}; | 90 : public PkitsTest<VerifyCertificateChainPkitsTestDelegate> {}; |
| 91 | 91 |
| 92 // Modified version of 4.1.4 Valid DSA Signatures Test4 | 92 // Modified version of 4.1.4 Valid DSA Signatures Test4 |
| 93 TEST_F(PkitsTest01SignatureVerificationCustom, | 93 TEST_F(PkitsTest01SignatureVerificationCustom, |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 | 209 |
| 210 // TODO(mattm): CRL support: PkitsTest04BasicCertificateRevocationTests, | 210 // TODO(mattm): CRL support: PkitsTest04BasicCertificateRevocationTests, |
| 211 // PkitsTest05VerifyingPathswithSelfIssuedCertificates, | 211 // PkitsTest05VerifyingPathswithSelfIssuedCertificates, |
| 212 // PkitsTest14DistributionPoints, PkitsTest15DeltaCRLs | 212 // PkitsTest14DistributionPoints, PkitsTest15DeltaCRLs |
| 213 | 213 |
| 214 // TODO(mattm): Certificate Policies support: PkitsTest08CertificatePolicies, | 214 // TODO(mattm): Certificate Policies support: PkitsTest08CertificatePolicies, |
| 215 // PkitsTest09RequireExplicitPolicy PkitsTest10PolicyMappings, | 215 // PkitsTest09RequireExplicitPolicy PkitsTest10PolicyMappings, |
| 216 // PkitsTest11InhibitPolicyMapping, PkitsTest12InhibitAnyPolicy | 216 // PkitsTest11InhibitPolicyMapping, PkitsTest12InhibitAnyPolicy |
| 217 | 217 |
| 218 } // namespace net | 218 } // namespace net |
| OLD | NEW |