diff options
author | Jack Lloyd <[email protected]> | 2018-04-01 10:07:44 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-04-01 10:25:25 -0400 |
commit | 575fdeab778669b83e5c5cc37f584a3cdef554f1 (patch) | |
tree | 6cf1c263cf1114ae6ea7c103ed67377e285ece32 /src/tests/test_x509_path.cpp | |
parent | 4b791c13d0c8604f0f02be092c3b77043a39b4f3 (diff) |
Fix validation tests - test certs had expired
GH #1521
Diffstat (limited to 'src/tests/test_x509_path.cpp')
-rw-r--r-- | src/tests/test_x509_path.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/tests/test_x509_path.cpp b/src/tests/test_x509_path.cpp index 50b5f3cf4..60e3b4eba 100644 --- a/src/tests/test_x509_path.cpp +++ b/src/tests/test_x509_path.cpp @@ -305,6 +305,8 @@ std::vector<Test::Result> Extended_Path_Validation_Tests::run() std::map<std::string, std::string> expected = read_results(Test::data_file("x509/extended/expected.txt")); + auto validation_time = Botan::calendar_point(2017,9,1,9,30,33).to_std_timepoint(); + for(auto i = expected.begin(); i != expected.end(); ++i) { const std::string test_name = i->first; @@ -340,7 +342,10 @@ std::vector<Test::Result> Extended_Path_Validation_Tests::run() Botan::Path_Validation_Result validation_result = Botan::x509_path_validate(end_user, restrictions, - store); + store, + "", + Botan::Usage_Type::UNSPECIFIED, + validation_time); result.test_eq(test_name + " path validation result", validation_result.result_string(), |