[gnutls-devel] GnuTLS | make insecure-hash filter out ciphersuites on ->prf as well (!1479)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Wed Oct 20 19:29:21 CEST 2021




Daiki Ueno started a new discussion on lib/priority.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1479#note_709476584

>  				priority_cache->_mac.priorities[z]);
> +			if (ce == NULL)
> +				continue;
>  
> -			if (ce != NULL && priority_cache->cs.size < MAX_CIPHERSUITE_SIZE) {
> -				priority_cache->cs.entry[priority_cache->cs.size++] = ce;
> -			}
> +			prf_digest = MAC_TO_DIG(ce->prf);
> +			if (prf_digest == GNUTLS_DIG_UNKNOWN)
> +				continue;
> +			if (_gnutls_digest_is_insecure(prf_digest))
> +				continue;
> +
> +			if (priority_cache->cs.size == MAX_CIPHERSUITE_SIZE)
> +				continue;
> +			priority_cache->cs.entry[priority_cache->cs.size++] = ce;

Sorry for being picky, but this could be:
```suggestion:-2+0
			if (priority_cache->cs.size == MAX_CIPHERSUITE_SIZE)
				priority_cache->cs.entry[priority_cache->cs.size++] = ce;
```

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1479#note_709476584
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/20211020/23a8f648/attachment.html>


More information about the Gnutls-devel mailing list