Assing check_{cert,crl}_time to 'ok' variable so it returns errors on

expiry.
This commit is contained in:
Dr. Stephen Henson 2005-05-27 13:19:25 +00:00
parent 0ebfcc8f92
commit 3f791ca818

View File

@ -776,7 +776,8 @@ static int check_crl(X509_STORE_CTX *ctx, X509_CRL *crl)
} }
} }
if (!check_crl_time(ctx, crl, 1)) ok = check_crl_time(ctx, crl, 1);
if (!ok)
goto err; goto err;
ok = 1; ok = 1;
@ -1006,7 +1007,8 @@ static int internal_verify(X509_STORE_CTX *ctx)
xs->valid = 1; xs->valid = 1;
if (!check_cert_time(ctx, xs)) ok = check_cert_time(ctx, xs);
if (!ok)
goto end; goto end;
/* The last error (if any) is still in the error value */ /* The last error (if any) is still in the error value */