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

Side by Side Diff: net/cert/internal/verify_certificate_chain_pkits_unittest.cc

Issue 2093223002: Allow Cast certificates to have serial numbers greater than 20 bytes, as well as non-minimal INTEGE… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2743
Patch Set: Created 4 years, 6 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
OLDNEW
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/parse_certificate.h" 7 #include "net/cert/internal/parse_certificate.h"
8 #include "net/cert/internal/signature_policy.h" 8 #include "net/cert/internal/signature_policy.h"
9 #include "net/der/input.h" 9 #include "net/der/input.h"
10 10
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 // takes them starting with the target and not including the trust anchor. 59 // takes them starting with the target and not including the trust anchor.
60 std::vector<der::Input> input_chain; 60 std::vector<der::Input> input_chain;
61 for (size_t i = cert_ders.size() - 1; i > 0; --i) 61 for (size_t i = cert_ders.size() - 1; i > 0; --i)
62 input_chain.push_back(der::Input(&cert_ders[i])); 62 input_chain.push_back(der::Input(&cert_ders[i]));
63 63
64 SimpleSignaturePolicy signature_policy(1024); 64 SimpleSignaturePolicy signature_policy(1024);
65 65
66 // Run all tests at the time the PKITS was published. 66 // Run all tests at the time the PKITS was published.
67 der::GeneralizedTime time = {2011, 4, 15, 0, 0, 0}; 67 der::GeneralizedTime time = {2011, 4, 15, 0, 0, 0};
68 68
69 return VerifyCertificateChain(input_chain, trust_store, &signature_policy, 69 return VerifyCertificateChain(input_chain, {}, trust_store,
70 time); 70 &signature_policy, time);
71 } 71 }
72 }; 72 };
73 73
74 } // namespace 74 } // namespace
75 75
76 class PkitsTest01SignatureVerificationCustom 76 class PkitsTest01SignatureVerificationCustom
77 : public PkitsTest<VerifyCertificateChainPkitsTestDelegate> {}; 77 : public PkitsTest<VerifyCertificateChainPkitsTestDelegate> {};
78 78
79 // Modified version of 4.1.4 Valid DSA Signatures Test4 79 // Modified version of 4.1.4 Valid DSA Signatures Test4
80 TEST_F(PkitsTest01SignatureVerificationCustom, 80 TEST_F(PkitsTest01SignatureVerificationCustom,
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 196
197 // TODO(mattm): CRL support: PkitsTest04BasicCertificateRevocationTests, 197 // TODO(mattm): CRL support: PkitsTest04BasicCertificateRevocationTests,
198 // PkitsTest05VerifyingPathswithSelfIssuedCertificates, 198 // PkitsTest05VerifyingPathswithSelfIssuedCertificates,
199 // PkitsTest14DistributionPoints, PkitsTest15DeltaCRLs 199 // PkitsTest14DistributionPoints, PkitsTest15DeltaCRLs
200 200
201 // TODO(mattm): Certificate Policies support: PkitsTest08CertificatePolicies, 201 // TODO(mattm): Certificate Policies support: PkitsTest08CertificatePolicies,
202 // PkitsTest09RequireExplicitPolicy PkitsTest10PolicyMappings, 202 // PkitsTest09RequireExplicitPolicy PkitsTest10PolicyMappings,
203 // PkitsTest11InhibitPolicyMapping, PkitsTest12InhibitAnyPolicy 203 // PkitsTest11InhibitPolicyMapping, PkitsTest12InhibitAnyPolicy
204 204
205 } // namespace net 205 } // namespace net
OLDNEW
« no previous file with comments | « net/cert/internal/verify_certificate_chain.cc ('k') | net/cert/internal/verify_certificate_chain_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698