- if (argc < 1) check(cert_ctx, NULL, untrusted, trusted, crls, e);
+ if(checktime_string)
+ {
+ /* interpret the -attime argument as seconds since Epoch */
+ if (sscanf(checktime_string, "%li", ×tamp) != 1)
+ {
+ BIO_printf(bio_err, "Error parsing timestamp %s\n",
+ checktime_string);
+ ERR_print_errors(bio_err);
+ goto end;
+ }
+ t = (time_t) timestamp; /* on some platforms time_t may be a float */
+ }
+
+ if (argc < 1) check(cert_ctx, NULL, untrusted, trusted, crls, e, t);