[gnutls-devel] GnuTLS | RFC7250 Raw public keys (!650)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Fri Nov 23 17:10:03 CET 2018


Tom commented on a discussion on lib/auth/cert.c:

>  	}
>  
> -	/* Correctly set the certificate type depending on whether we
> -	 * have explicitly negotiated certificate types (RFC7250).
> -	 */
> -	if (_gnutls_has_negotiate_ctypes(session)) {
> -		if (IS_SERVER(session))	{
> -			type = gnutls_certificate_type_get2(session, GNUTLS_CTYPE_SERVER);
> -		} else { // Client mode
> -			type = gnutls_certificate_type_get2(session, GNUTLS_CTYPE_CLIENT);
> -		}
> -	} else {
> -		type = DEFAULT_CERT_TYPE;
> +	/* Correctly set the certificate type */
> +	if (IS_SERVER(session))	{
> +		type = gnutls_certificate_type_get2(session, GNUTLS_CTYPE_SERVER);

Well spotted. That would be a nice simplification. I'll update it.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/650#note_119679808
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/20181123/24d75be0/attachment.html>


More information about the Gnutls-devel mailing list