included certs expire 2020-10-24 so this test fails after that date.
Fixes #967
This patch was done while working on reproducible builds for openSUSE.
Signed-off-by: Bernhard M. Wiedemann <bwiedemann@suse.de>
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"
unsigned int status;
int ret;
+ gnutls_global_set_time_function(mytime);
ret = gnutls_certificate_verify_peers2(session, &status);
if (ret < 0)
return -1;