[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 12:53:52 CEST 2018


Daiki Ueno started a new discussion on lib/tls13/finished.c:

>  
>  	hash_size = session->security_parameters.prf->output_size;
>  
> -	if (session->security_parameters.entity == GNUTLS_CLIENT)
> -		base_key = session->key.proto.tls13.hs_skey;
> -	else
> -		base_key = session->key.proto.tls13.hs_ckey;
> +	if (!session->internals.initial_negotiation_completed) {

This pattern (line 78 to 88) also appears in `_gnutls13_send_finished`. Maybe it could be factored out as a macro or a separate function?

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


More information about the Gnutls-devel mailing list