[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:43 CET 2018


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

> -		} 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);
> +
> +	if (ctype_client == ctype_server) {

This should be kept executing when no alternative cert types are enabled.

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


More information about the Gnutls-devel mailing list