[gnutls-devel] GnuTLS | Allow registering ciphers with higher priority (!1404)

Read-only notification of GnuTLS library development activities gnutls-devel at lists.gnutls.org
Wed Mar 17 08:21:37 CET 2021




Stephan Mueller commented on a discussion on lib/accelerated/afalg.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1404#note_531115596

> +	struct kcapi_aead_ctx *ctx;
> +
> +	if (kcapi_aead_init(&handle, gnutls_aead_map[algorithm], 0) < 0) {
> +		gnutls_assert();
> +		return GNUTLS_E_MEMORY_ERROR;
> +	}
> +
> +	ctx = (struct kcapi_aead_ctx *)gnutls_calloc(1,
> +					sizeof(struct kcapi_aead_ctx));
> +	if (ctx == NULL) {
> +		gnutls_assert();
> +		kcapi_aead_destroy(handle);
> +		return GNUTLS_E_MEMORY_ERROR;
> +	}
> +
> +	ctx->ccm = !strncmp(gnutls_aead_map[algorithm], "ccm", 3);

Yes, that is much more sane, thanks.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1404#note_531115596
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/20210317/2a9a0fe9/attachment-0001.html>


More information about the Gnutls-devel mailing list