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

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Tue Nov 27 14:07:16 CET 2018


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

> +	 */
> +	DECR_LEN(dsize, 3);
> +	cert_size = _gnutls_read_uint24(p);
> +	p += 3;
> +
> +	/* Ensure no discrepancy in data */
> +	if (cert_size != dsize)
> +		return gnutls_assert_val(GNUTLS_E_UNEXPECTED_PACKET_LENGTH);
> +
> +
> +	if (cert_size == 0)	{
> +		// No certificate was sent. This is not OK.
> +		return gnutls_assert_val(GNUTLS_E_NO_CERTIFICATE_FOUND);
> +	}
> +
> +	// Check the rest of our packet length

unnecessary comment

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


More information about the Gnutls-devel mailing list