]> git.ipfire.org Git - thirdparty/openssl.git/commit
Add new public API for checking certificate times.
authorBob Beck <beck@openssl.org>
Fri, 14 Nov 2025 20:36:56 +0000 (13:36 -0700)
committerNeil Horman <nhorman@openssl.org>
Thu, 18 Dec 2025 18:34:58 +0000 (13:34 -0500)
commit4036f4b0e324ead33424ba83ececc2d3c649acc1
tree7ce908b8ab970ba1f4091e75add803c46ff77f20
parent5cbbced70dd7dd37b6b11dc6e5b7ca78d4d2e436
Add new public API for checking certificate times.

Fixes: #1631
This changes the previously internal ossl_x509_check_certificate_times()
to be the public X509_check_certificate_times(). It adds documentation
for the new function and marks X509_cmp_time, X509_cmp_timeframe,
and X509_cmp_current_time as deprecated in 4.0, as discussed in #1631.

Since the function is now public, we can replace the remaining
uses of deprecated stuff with this function.

Reviewed-by: Neil Horman <nhorman@openssl.org>
Reviewed-by: Saša Nedvědický <sashan@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/29152)
16 files changed:
apps/lib/apps.c
apps/x509.c
crypto/cmp/cmp_genm.c
crypto/cmp/cmp_vfy.c
crypto/ocsp/ocsp_cl.c
crypto/x509/t_x509.c
crypto/x509/x509_vfy.c
doc/build.info
doc/man3/X509_check_certificate_times.pod [moved from doc/man3/X509_cmp_time.pod with 54% similarity]
include/crypto/x509.h
include/openssl/macros.h
include/openssl/x509.h.in
test/recipes/25-test_x509.t
test/x509_internal_test.c
test/x509_time_test.c
util/libcrypto.num