[gnutls-devel] GnuTLS | RFC7250 Raw public keys (!650)
Development of GNU's TLS library
gnutls-devel at lists.gnutls.org
Tue Nov 20 22:21:35 CET 2018
Tom commented on a 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) {
It is because these values are both set to X509 as a default.
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/650#note_118864499
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/a83a98a5/attachment-0001.html>
More information about the Gnutls-devel
mailing list