[gnutls-devel] GnuTLS | tls1.3: server returns early on handshake when no cert is provided by client (!711)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Fri Jul 27 15:57:38 CEST 2018


Nikos Mavrogiannopoulos commented on a discussion on lib/handshake-tls13.c:

> +			IMED_RET("generate app keys", ret, 0);
> +
> +			ret = _tls13_write_connection_state_init(session, STAGE_APP);
> +			IMED_RET("set write app keys", ret, 0);
> +
> +			_gnutls_handshake_log("HSK[%p]: switching early to application traffic keys\n", session);
> +		}
> +
> +		/* fall through */
> +	case STATE108:
> +		if (session->internals.resumed != RESUME_FALSE)
> +			_gnutls_set_resumed_parameters(session);
> +
> +		/* If we didn't request a client certificate we can send tickets now
> +		 * and return early */
> +		if (session->internals.hsk_flags & HSK_EARLY_START_USED) {

Reading the above again, actually the code above doesn't do it only for the unauthenticated client, but also for PSK. Ouch. Updating.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/711#note_90806820
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/20180727/6d2bda79/attachment.html>


More information about the Gnutls-devel mailing list