diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2009-09-02 13:55:22 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2009-09-02 13:55:22 +0000 |
commit | e5eb96c83a553288653a2b99ec78bc5d251ac7a7 (patch) | |
tree | b612f95fa1f4ffc16182a508ce1471ab6ec06244 /apps/ca.c | |
parent | 54ed003ace95df93c51f49fc0d6d446d957da97e (diff) | |
download | openssl-e5eb96c83a553288653a2b99ec78bc5d251ac7a7.tar.gz |
PR: 2013
Submitted by: steve@openssl.org
Include a flag ASN1_STRING_FLAG_MSTRING when a multi string type is created.
This makes it possible to tell if the underlying type is UTCTime,
GeneralizedTime or Time when the structure is reused and X509_time_adj_ex()
can handle each case in an appropriate manner.
Add error checking to CRL generation in ca utility when nextUpdate is being
set.
Diffstat (limited to 'apps/ca.c')
-rw-r--r-- | apps/ca.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1403,7 +1403,12 @@ bad: if (!tmptm) goto err; X509_gmtime_adj(tmptm,0); X509_CRL_set_lastUpdate(crl, tmptm); - X509_time_adj_ex(tmptm, crldays, crlhours*60*60 + crlsec, NULL); + if (!X509_time_adj_ex(tmptm, crldays, crlhours*60*60 + crlsec, + NULL)) + { + BIO_puts(bio_err, "error setting CRL nextUpdate\n"); + goto err; + } X509_CRL_set_nextUpdate(crl, tmptm); ASN1_TIME_free(tmptm); |