[gnutls-devel] GnuTLS | abstract: simplify DH key export and import API (!1775)
Read-only notification of GnuTLS library development activities
gnutls-devel at lists.gnutls.org
Tue Sep 12 07:48:00 CEST 2023
Daiki Ueno commented on a discussion on lib/pubkey.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1775#note_1554337602
> + int ret;
> + mpi_dprint_func dprint = _gnutls_mpi_dprint_lz;
> +
> + if (flags & GNUTLS_EXPORT_FLAG_NO_LZ)
> + dprint = _gnutls_mpi_dprint;
> +
> + if (key == NULL) {
> + return gnutls_assert_val(GNUTLS_E_INVALID_REQUEST);
> + }
> +
> + if (key->params.algo != GNUTLS_PK_DH) {
> + return gnutls_assert_val(GNUTLS_E_INVALID_REQUEST);
> + }
> +
> + if (params) {
> + }
Oops; seems like I removed the code block mistakenly. I've added it back and also added tests that exercise this. Thank you for spotting it!
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1775#note_1554337602
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/20230912/74e44716/attachment-0001.html>
More information about the Gnutls-devel
mailing list