[gnutls-devel] GnuTLS | ocsptool: add `--attime` option (!1724)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Mon Mar 13 05:12:15 CET 2023

Daiki Ueno started a new discussion on src/ocsptool-options.json: https://gitlab.com/gnutls/gnutls/-/merge_requests/1724#note_1310782741

>            "long-option": "verify-allow-broken",
>            "description": "Allow broken algorithms, such as MD5 for verification",
>            "detail": "This can be combined with --verify-response."
> +        },
> +        {
> +          "long-option": "attime",
> +          "description": "Perform validation at the timestamp instead of the system time",
> +          "detail": "Number of seconds since 01.01.1970",
> +          "argument-name": "timestamp",
> +          "argument-type": "number"

I think it would be more useful if the option takes a string, like "2023-03-13" or "@1678680679". As we already import the [parse-datetime](https://www.gnu.org/software/gnulib/MODULES.html#module=parse-datetime) module from Gnulib, you could include "parse-datetime.h" and call `parse_datetime` function on the option value.

Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1724#note_1310782741
You're receiving this email because of your account on gitlab.com.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20230313/f1791a9c/attachment-0001.html>

More information about the Gnutls-devel mailing list