]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Fix TLS context tests with expired certs
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 25 Jul 2011 15:18:56 +0000 (16:18 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 25 Jul 2011 15:21:19 +0000 (16:21 +0100)
commit567b8d69b97827da0e6e7145edb83ec0d7deff86
treee01da4eaa95e3e00ef164f3ad74b793e414dd173
parent2a667c34cb3c7887bad59a9e99f264514cf7af70
Fix TLS context tests with expired certs

commit 5283ea9b1d8a4b0f2fd6796bf60615aca7b6c3e6 changed the
semantics of the 'expire_offset' field in the test case struct
so that instead of being an absolute timestamp, it was a delta
relative to the current time. This broke the test cases which
were testing expiry of certificates, by putting the expiry
time into the future, instead of in the past.

Fix this by changing the expiry values to be negative, so that
the delta goes into the past again.

* virnettlscontexttest.c: Fix expiry tests
tests/virnettlscontexttest.c