add timezone-offset support to GeneralizedTime

this also fixes a bug in the length generation
This commit is contained in:
Steffen Jaeckel
2017-03-30 22:48:42 +02:00
parent 59b4026fa7
commit 83780d4764
4 changed files with 32 additions and 6 deletions
+4 -1
View File
@@ -672,7 +672,10 @@ typedef struct {
hh, /* hour */
mm, /* minute */
ss, /* second */
fs; /* fractional seconds */
fs, /* fractional seconds */
off_dir, /* timezone offset direction 0 == +, 1 == - */
off_hh, /* timezone offset hours */
off_mm; /* timezone offset minutes */
} ltc_generalizedtime;
int der_encode_generalizedtime(ltc_generalizedtime *gtime,