[gnutls-devel] Guile-GnuTLS | More X.509 bindings (!13)
Read-only notification of GnuTLS library development activities
gnutls-devel at lists.gnutls.org
Fri Jun 16 21:53:58 CEST 2023
David Thompson started a new discussion on guile/src/core.c: https://gitlab.com/gnutls/guile/-/merge_requests/13#note_1434592839
> + }
> + while (err == GNUTLS_E_SHORT_MEMORY_BUFFER);
> +
> + if (EXPECT_FALSE (err))
> + {
> + scm_gc_free (output, output_total_len, func_name);
> + scm_gnutls_error (err, FUNC_NAME);
> + }
> +
> + if (output_len != output_total_len)
> + /* Shrink the output buffer. */
> + output = scm_gc_realloc (output, output_total_len,
> + output_len, func_name);
> +
> + return (scm_take_u8vector (output, output_len));
> +}
@civodul I copied the way that `pkcs_export_parameters` does things, adapted to work with certs/keys, and rewrote the `scm_gnutls_export_x509_certificate` and `scm_gnutls_export_x509_private_key` to use it.
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/guile/-/merge_requests/13#note_1434592839
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/20230616/972b3d0f/attachment-0001.html>
More information about the Gnutls-devel
mailing list