[gnutls-devel] GnuTLS | WIP: Add support for CNT_IMIT TLS 1.2 GOST cipher suite (!920)
Development of GNU's TLS library
gnutls-devel at lists.gnutls.org
Sat Feb 23 19:50:29 CET 2019
Nikos Mavrogiannopoulos started a new discussion on lib/auth/vko_gost.c:
> +{
> + gnutls_digest_algorithm_t digalg = GNUTLS_DIG_STREEBOG_256;
> + gnutls_hash_hd_t dig;
> + int ret;
> +
> + ret = gnutls_hash_init(&dig, digalg);
> + if (ret < 0) {
> + gnutls_assert();
> + return ret;
> + }
> +
> + ukm->size = gnutls_hash_get_len(digalg);
> + ukm->data = gnutls_malloc(ukm->size);
> + if (ukm->data == NULL) {
> + gnutls_assert();
> + ret = GNUTLS_E_INTERNAL_ERROR;
`GNUTLS_E_MEMORY_ERROR` is more appropriate here
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/920#note_144296769
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/20190223/45e1341e/attachment.html>
More information about the Gnutls-devel
mailing list