CVSROOT:        /cvs
Module name:    src
Changes by:     b...@cvs.openbsd.org    2024/03/25 18:39:22

Modified files:
        lib/libcrypto/ts: ts.h ts_conf.c ts_rsp_sign.c 

Log message:
Change ts to only support one second precision.

RFC 3631 allows for sub second ASN1 GENERALIZED times, if you
choose to support sub second time precison. It does not
indicate that an implementation must support them.

Supporting sub second timestamps is just silly and unrealistic,
so set our maximum to one second of precision. We then simplify
this code by removing some nasty eye-bleed that made artisinally
hand crafted strings and jammed them into an ASN1_GENERALIZEDTIME.

ok tb@, jsing@, with one second precision tested by kn@

Reply via email to