[gnutls-devel] GnuTLS | WIP: GOST key exchange support (!1097)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Sun Nov 3 16:02:20 CET 2019




Dmitry Eremin-Solenikov commented on a discussion on lib/auth/vko_gost.c: https://gitlab.com/gnutls/gnutls/merge_requests/1097#note_239307751

> +		}
> +
> +		has_pcert = 1;
> +	}
> +
> +	ret = _gnutls_gost_keytrans_decrypt(has_pcert ? &peer_cert.pubkey->params : NULL,
> +					    &privkey->key.x509->params,
> +					    &cek, &ukm, &session->key.key);
> +	if (ret < 0) {
> +		gnutls_assert();
> +		_gnutls_free_datum(&ukm);
> +		goto cleanup;
> +	}
> +
> +	if (ret == 0)
> +		session->internals.hsk_flags &= ~HSK_CRT_VRFY_EXPECTED;

It's necessary because otherwise a client will expect server's CertificateVerify message. However with this KX a server won't send one.

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/merge_requests/1097#note_239307751
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/20191103/aa6f65d1/attachment-0001.html>


More information about the Gnutls-devel mailing list