[gnutls-devel] libtasn1 | Make use of const variant of asn1_node (!9)
Development of GNU's TLS library
gnutls-devel at lists.gnutls.org
Wed Jul 10 15:25:36 CEST 2019
Tim Rühsen commented on a discussion on lib/coding.c: https://gitlab.com/gnutls/libtasn1/merge_requests/9#note_190367268
> * length needed.
> **/
> int
> -asn1_der_coding (asn1_node element, const char *name, void *ider, int *len,
> +asn1_der_coding (asn1_node_const element, const char *name, void *ider, int *len,
That doesn't work out the way asn1_node is typedef'ed. Adding just a 'const' results *NOT* in 'const asn1_node_st *' (as wanted) but in 'asn1_node_st * const' which is semantically different. That's how C works, I couldn't work around it other than creating/typedefing 'asn1_node_const'.
--
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/libtasn1/merge_requests/9#note_190367268
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/20190710/562ff29b/attachment.html>
More information about the Gnutls-devel
mailing list