[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:29:39 CEST 2018


Nikos Mavrogiannopoulos started a new discussion on tests/suite/resume-with-previous-stek.c:

> +
> +	do {
> +		ret = gnutls_bye(session, GNUTLS_SHUT_RDWR);
> +	} while (ret == GNUTLS_E_AGAIN || ret == GNUTLS_E_INTERRUPTED);
> +
> +	return 0;
> +}
> +
> +static void client(int fd, int *resume, unsigned rounds, const char *prio)
> +{
> +	gnutls_session_t session;
> +	gnutls_datum_t session_data;
> +	gnutls_certificate_credentials_t clientx509cred = NULL;
> +
> +	for (unsigned i = 0; i < rounds; i++) {
> +		gnutls_certificate_allocate_credentials(&clientx509cred);

same comments as in the other test (could use assert for checking errors in other functions), and move the testing pattern on the top caller (doit).

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/695#note_101424216
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20180914/6969e09e/attachment.html>


More information about the Gnutls-devel mailing list