[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:21:42 CEST 2018


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

> +static void server(int fd, int *resumption_should_succeed, unsigned num_sessions, const char *prio)
> +{
> +	int retval;
> +	gnutls_session_t session;
> +	gnutls_certificate_credentials_t serverx509cred;
> +	gnutls_datum_t session_ticket_key = { NULL, 0 };
> +
> +	global_init();
> +
> +	if (gnutls_session_ticket_key_generate(&session_ticket_key) < 0) {
> +		fail("server: Could not generate session ticket key\n");
> +		goto end;
> +	}
> +
> +	for (unsigned i = 0; i < num_sessions; i++) {
> +		gnutls_init(&session, GNUTLS_SERVER);

an assert or error checking would be nice for errors

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/695#note_101422514
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/5449960b/attachment.html>


More information about the Gnutls-devel mailing list