diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-12-01 23:13:25 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-12-01 23:13:25 +0100 |
| commit | 9a5809be580c1a12864d751a710f6783363d3de7 (patch) | |
| tree | 2039fc251ed6bb5abcfe2fd6daa2fe572fac144e /src/local_time.h | |
| parent | c78523806e89e4c43015816fcd20db2549992464 (diff) | |
Check that KDM validity periods are safely within the validity periods
of the signing certificate chain.
This does cause problems when you try to create a KDM for a certificate
you just made (due to the fact that certificates always have a start-valid
time of "now") but hopefully this can be fixed up in another commit.
Diffstat (limited to 'src/local_time.h')
| -rw-r--r-- | src/local_time.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/local_time.h b/src/local_time.h index 20658eb4..f5723783 100644 --- a/src/local_time.h +++ b/src/local_time.h @@ -66,6 +66,22 @@ public: std::string date () const; std::string time_of_day (bool with_second, bool with_millisecond) const; + int day () const { + return _day; + } + + int month () const { + return _month; + } + + int year () const { + return _year; + } + + void set_year (int y) { + _year = y; + } + bool operator== (LocalTime const & other) const; bool operator!= (LocalTime const & other) const; bool operator< (LocalTime const & other) const; |
