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

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Mon Nov 26 14:06:54 CET 2018


Nikos Mavrogiannopoulos started a new discussion on lib/gnutls_int.h:

> +		case GNUTLS_CTYPE_OURS:
> +			if (IS_SERVER(session)) {
> +				return session->security_parameters.server_ctype;
> +			} else {
> +				return session->security_parameters.client_ctype;
> +			}
> +			break;
> +		case GNUTLS_CTYPE_PEERS:
> +			if (IS_SERVER(session)) {
> +				return session->security_parameters.client_ctype;
> +			} else {
> +				return session->security_parameters.server_ctype;
> +			}
> +			break;
> +		default:		// Illegal parameter passed
> +			return GNUTLS_E_INVALID_REQUEST;

This is not part of `gnutls_certificate_type_t` which this function is returning. If that situation needs to be handled it could return `GNUTLS_CRT_UNKNOWN` which is part of the enumeration.

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


More information about the Gnutls-devel mailing list