summaryrefslogtreecommitdiff
path: root/crypto/asn1/a_gentm.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>1999-05-08 11:08:25 +0000
committerDr. Stephen Henson <steve@openssl.org>1999-05-08 11:08:25 +0000
commit7e797a06c3eeac137eeb2e5743a7982bb5636841 (patch)
tree1de36086f460fdf328b4cb627ec5e45311a04d77 /crypto/asn1/a_gentm.c
parent8cf6522820b3870121711b81eafa3afdaecf19ae (diff)
downloadopenssl-new-7e797a06c3eeac137eeb2e5743a7982bb5636841.tar.gz
GeneralizedTime setting fixes.
Diffstat (limited to 'crypto/asn1/a_gentm.c')
-rw-r--r--crypto/asn1/a_gentm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/asn1/a_gentm.c b/crypto/asn1/a_gentm.c
index 70c99ef441..84440cce6c 100644
--- a/crypto/asn1/a_gentm.c
+++ b/crypto/asn1/a_gentm.c
@@ -198,7 +198,7 @@ ASN1_GENERALIZEDTIME *ASN1_GENERALIZEDTIME_set(ASN1_GENERALIZEDTIME *s,
s->data=(unsigned char *)p;
}
- sprintf(p,"%04d%02d%02d%02d%02d%02dZ",ts->tm_year,
+ sprintf(p,"%04d%02d%02d%02d%02d%02dZ",ts->tm_year + 1900,
ts->tm_mon+1,ts->tm_mday,ts->tm_hour,ts->tm_min,ts->tm_sec);
s->length=strlen(p);
s->type=V_ASN1_GENERALIZEDTIME;