diff options
| author | Carl Hetherington <cth@carlh.net> | 2019-12-01 23:11:02 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2019-12-01 23:12:54 +0100 |
| commit | c78523806e89e4c43015816fcd20db2549992464 (patch) | |
| tree | e04a9a230002451d7db7ea9941589ccab7b6bc59 /src | |
| parent | 9ec8f4724969c789c3add7edc7c548827f73d8a3 (diff) | |
Fix incorrect month when returning not-before/not-after.
Diffstat (limited to 'src')
| -rw-r--r-- | src/certificate.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/certificate.cc b/src/certificate.cc index 9f8499c9..2e33907d 100644 --- a/src/certificate.cc +++ b/src/certificate.cc @@ -354,6 +354,8 @@ convert_time (ASN1_TIME const * time) t.tm_year -= 1900; } + t.tm_mon--; + return t; } |
