[gnutls-devel] GnuTLS | x509: clarify how to release memory allocated for DN (!1359)
Read-only notification of GnuTLS library development activities
gnutls-devel at lists.gnutls.org
Fri Nov 13 13:24:45 CET 2020
Daniel Stenberg commented:
While this is an improvement I think it still could be enhanced. This update still misses to point out that the user needs to free the `->data` pointer in the struct to which you get a pointer to.
~~~c
rc = gnutls_x509_crt_get_dn2(x509_cert, &certfields);
gnutls_free(certfields.data);
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1359#note_447073381
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/20201113/5ab2a983/attachment.html>
More information about the Gnutls-devel
mailing list