[gnutls-devel] GnuTLS | Session ticket key rotation with TOTP (!695)
Development of GNU's TLS library
gnutls-devel at lists.gnutls.org
Fri Sep 14 14:28:01 CEST 2018
Nikos Mavrogiannopoulos started a new discussion on tests/suite/resume-with-stek-expiration.c:
> + /* Initialize TLS layer */
> + gnutls_init(&session, GNUTLS_CLIENT);
> + gnutls_priority_set_direct(session, prio, NULL);
> + /* put the anonymous credentials to the current session */
> + gnutls_credentials_set(session, GNUTLS_CRD_CERTIFICATE,
> + clientx509cred);
> + gnutls_transport_set_int(session, fd);
> + if (resume_and_close(session, &session_data, resumption_should_succeed[i]) < 0)
> + return;
> + /* Wait one second */
> + sec_sleep(1);
You do not need real delays here. You can include `virt-time.h`, call `virt_time_init` in `doit()`, and then use `virt_sec_sleep` here. That way the delay is simulated and the test is run quickly (you could even use more realistic values for the ticket rotation.
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/695#note_101423824
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Gnutls-devel