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

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Tue Nov 20 13:52:52 CET 2018


Nikos Mavrogiannopoulos started a new 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);

wouldn't it further simplify the code if doing a single call with CTYPE_OURS parameter?

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/650#note_118714501
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/20181120/792397ce/attachment.html>


More information about the Gnutls-devel mailing list