[gnutls-devel] GnuTLS | Add compress_certificate extension (RFC8879) (!1512)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Thu Feb 17 13:38:45 CET 2022




Zoltán Fridrich commented on a discussion on lib/tls13/certificate.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1512#note_846386908

> +	if (ret < 0)
> +		return gnutls_assert_val(ret);
> +	
> +	gnutls_free(comp.data);
> +	return 0;
> +}
> +
> +static int
> +decompress_certificate(gnutls_buffer_st * buf)
> +{
> +	int ret;
> +	size_t method_num, plain_exp_len;
> +	gnutls_datum_t comp, plain = { NULL, 0 };
> +	gnutls_compression_method_t comp_method;
> +
> +	ret = _gnutls_buffer_pop_prefix16(buf, &method_num, 0);

Because it doesn't make sense. The 2 bytes of data does not represent size but a method number.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1512#note_846386908
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/20220217/b38782dc/attachment.html>


More information about the Gnutls-devel mailing list