[gnutls-devel] GnuTLS | lib: improve external file loading (!1261)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Wed May 27 20:08:12 CEST 2020

Tim Rühsen commented on a discussion on lib/cert-cred-rawpk.c: https://gitlab.com/gnutls/gnutls/-/merge_requests/1261#note_350266761

>  		ret = gnutls_pcert_import_rawpk_raw(pcert, &rawpubkey,
>  						format, key_usage, 0);
> -		_gnutls_free_datum(&rawpubkey);
> +		zeroize_key(rawpubkey.data, rawpubkey.size);

Oh yes. And your are right in being pedantic.
Don't we still have the custom allocators (as global variables) ? From gnutls.h:
/* For use in callbacks */
extern _SYM_EXPORT gnutls_alloc_function gnutls_malloc;
extern _SYM_EXPORT gnutls_realloc_function gnutls_realloc;
extern _SYM_EXPORT gnutls_calloc_function gnutls_calloc;
extern _SYM_EXPORT gnutls_free_function gnutls_free;

Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/-/merge_requests/1261#note_350266761
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/20200527/bad79a97/attachment.html>

More information about the Gnutls-devel mailing list