]> git.ipfire.org Git - thirdparty/tor.git/commit
Stop using time(NULL) for certificate tests.
authorNick Mathewson <nickm@torproject.org>
Thu, 6 Mar 2025 13:47:55 +0000 (08:47 -0500)
committerNick Mathewson <nickm@torproject.org>
Thu, 6 Mar 2025 13:50:39 +0000 (08:50 -0500)
commiteb9eaf536340c87006bac93076ddee14f9d3f3ac
treea8e3e97403ed921a134edd9ecd5dde3ffe44337c
parentcc50eadaae277bc141f74c33dd0e0304517b5ae0
Stop using time(NULL) for certificate tests.

The canned testing certificates added in order to fix #41041
will start to expire in a couple of months;
to avoid a test failure then, we should only validate
them against a time when they are valid.

Previously, we got away with using time(NULL) because the old
canned certificate (taken from testing.torproject.org)
was not only signed using SHA-1: it was valid until 2043!
src/core/or/connection_or.c
src/lib/tls/tortls.c
src/lib/tls/tortls.h
src/test/test_tortls.c
src/test/test_tortls.h
src/test/test_tortls_openssl.c