[gnutls-devel] GnuTLS | Forbid uncolicited CompressedCertificate messages (!1678)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Thu Dec 8 13:22:04 CET 2022




Alexander Sosedkin commented on a discussion on lib/ext/compress_certificate.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1678#note_1201568880

>  	}
>  }
>  
> +/* Returns 1 if the method is set as supported compression method for the session,
> + * returns 0 otherwise
> + */
> +int
> +_gnutls_compress_certificate_is_method_enabled(gnutls_session_t session,
> +					       gnutls_compression_method_t method)
> +{
> +	int ret;
> +	unsigned i;
> +	compress_certificate_ext_st *priv;
> +	gnutls_ext_priv_data_t epriv;
> +
> +	ret = _gnutls_hello_ext_get_priv(session, GNUTLS_EXTENSION_COMPRESS_CERTIFICATE, &epriv);

`_hello_` in function name led me to think it inspects ClientHello/ServerHello.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1678#note_1201568880
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/20221208/fee54d94/attachment.html>


More information about the Gnutls-devel mailing list