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

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


Nikos Mavrogiannopoulos started a new discussion on lib/session.c:

> -				 gnutls_certificate_type_get_name(ctype_client));
> -		} else {
> -			// print proto version, client cert type, server cert type
> -			snprintf(proto_name, sizeof(proto_name), "%s-%s-%s",
> -				 gnutls_protocol_get_name(get_num_version(session)),
> -				 gnutls_certificate_type_get_name(ctype_client),
> -				 gnutls_certificate_type_get_name(ctype_server));
> -		}
> -	} else { // Assumed default certificate type (X.509)
> -			snprintf(proto_name, sizeof(proto_name), "%s",
> -				 gnutls_protocol_get_name(get_num_version
> -								(session)));
> +	// Get certificate types
> +	ctype_client = _gnutls_certificate_type_get2(session, GNUTLS_CTYPE_CLIENT);
> +	ctype_server = _gnutls_certificate_type_get2(session, GNUTLS_CTYPE_SERVER);
> +

This code is not equivalent to what it replaces. It always adds the certificate type, although that's not what the previous code does.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/650#note_120393001
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/20181127/2d96f90b/attachment.html>


More information about the Gnutls-devel mailing list