diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2003-01-24 01:12:01 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2003-01-24 01:12:01 +0000 |
commit | d3b5cb5343afa4e4ae64bee4621171e6b00aaa21 (patch) | |
tree | 308f89977f30d1eddebf02c5c596c515db47e0ef /apps/req.c | |
parent | 97e6bf6b22d75b847b5c9c0472c54ffe3169eece (diff) | |
download | openssl-d3b5cb5343afa4e4ae64bee4621171e6b00aaa21.zip openssl-d3b5cb5343afa4e4ae64bee4621171e6b00aaa21.tar.gz openssl-d3b5cb5343afa4e4ae64bee4621171e6b00aaa21.tar.bz2 |
Check return value of gmtime() and add error codes
where it fails in ASN1_TIME_set().
Edit asn1.h so the new error code is the same in 0.9.7
and 0.9.8, rebuild new error codes.
Clear error queue in req.c if *_min or *_max is absent.
Diffstat (limited to 'apps/req.c')
-rw-r--r-- | apps/req.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1318,11 +1318,17 @@ start: for (;;) sprintf(buf,"%s_min",v->name); if (!NCONF_get_number(req_conf,dn_sect,buf, &n_min)) + { + ERR_clear_error(); n_min = -1; + } sprintf(buf,"%s_max",v->name); if (!NCONF_get_number(req_conf,dn_sect,buf, &n_max)) + { + ERR_clear_error(); n_max = -1; + } if (!add_DN_object(subj,v->value,def,value,nid, n_min,n_max, chtype)) |