diff -Nurd gnutls-3.6.13.orig/tests/status-request-revoked.c gnutls-3.6.13/tests/status-request-revoked.c --- gnutls-3.6.13.orig/tests/status-request-revoked.c 2020-01-18 08:50:33.000000000 -0500 +++ gnutls-3.6.13/tests/status-request-revoked.c 2023-06-04 14:49:26.000000000 -0400 @@ -65,6 +65,16 @@ fprintf(stderr, "client|<%d>| %s", level, str); } +static time_t mytime(time_t * t) +{ + time_t then = 1586000000; + + if (t) + *t = then; + + return then; +} + static unsigned char server_cert_pem[] = "-----BEGIN CERTIFICATE-----\n" "MIIEKjCCAhKgAwIBAgIIRiBQA6KFBj0wDQYJKoZIhvcNAQELBQAwDzENMAsGA1UE\n" @@ -252,6 +262,7 @@ unsigned int status; int ret; + gnutls_global_set_time_function(mytime); ret = gnutls_certificate_verify_peers2(session, &status); if (ret < 0) return -1;