aboutsummaryrefslogtreecommitdiffstats
path: root/src/tests/unit_x509.cpp
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2020-11-08 04:18:22 -0500
committerJack Lloyd <[email protected]>2020-11-08 04:20:17 -0500
commit218c2a4a012f21f47ea97734b5898da02bbd5582 (patch)
treed911054085b3a4522f31e11b0d0ccab01b54e247 /src/tests/unit_x509.cpp
parentae8dd59c3d4ed5e4b0e0319b470d8b019102bf11 (diff)
Modify calendar interface
The fix for #2465 broke Windows since there it is not allowed to have a DLL interface function defined on a DLL interface class. (Why, who the f knows). As a result we are caught between two platform limitations and it's not actually possible to have a static function on an class that is DLL exported... (at least not without adding some distinct annotation to cover this case)
Diffstat (limited to 'src/tests/unit_x509.cpp')
-rw-r--r--src/tests/unit_x509.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/unit_x509.cpp b/src/tests/unit_x509.cpp
index f6eceb768..98343ebcf 100644
--- a/src/tests/unit_x509.cpp
+++ b/src/tests/unit_x509.cpp
@@ -30,7 +30,7 @@ namespace {
Botan::X509_Time from_date(const int y, const int m, const int d)
{
- const size_t this_year = Botan::calendar_value(std::chrono::system_clock::now()).get_year();
+ const size_t this_year = Botan::calendar_point_from_time_point(std::chrono::system_clock::now()).get_year();
Botan::calendar_point t(static_cast<uint32_t>(this_year + y), m, d, 0, 0, 0);
return Botan::X509_Time(t.to_std_timepoint());