diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2000-08-21 22:02:23 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2000-08-21 22:02:23 +0000 |
commit | eaa28181898b8ca0b54552a3290789bb17444c8a (patch) | |
tree | 4360130c00f3d122b416ba40efee781e313db5c7 /crypto/x509 | |
parent | 622ec449e5fe8f1e6bed036705ea97c74c9be1b7 (diff) |
Various fixes...
initialize ex_pathlen to -1 so it isn't checked if pathlen
is not present.
set ucert to NULL in apps/pkcs12.c otherwise it gets freed
twice.
remove extraneous '\r' in MIME encoder.
Allow a NULL to be passed to X509_gmtime_adj()
Make PKCS#7 code use definite length encoding rather then
the indefinite stuff it used previously.
Diffstat (limited to 'crypto/x509')
-rw-r--r-- | crypto/x509/x509_vfy.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/x509/x509_vfy.c b/crypto/x509/x509_vfy.c index 0d5273d51a..ccc031377a 100644 --- a/crypto/x509/x509_vfy.c +++ b/crypto/x509/x509_vfy.c @@ -582,6 +582,7 @@ ASN1_TIME *X509_gmtime_adj(ASN1_TIME *s, long adj) time(&t); t+=adj; + if(!s) return ASN1_TIME_set(s, t); if(s->type == V_ASN1_UTCTIME) return(ASN1_UTCTIME_set(s,t)); return ASN1_GENERALIZEDTIME_set(s, t); } |