compilation error with gnutls 2.12.10 a,d mingw-w64
Nikos Mavrogiannopoulos
nmav at gnutls.org
Mon Oct 10 14:29:39 CEST 2011
On Mon, Oct 10, 2011 at 2:21 PM, Simon Josefsson <simon at josefsson.org> wrote:
> So the proper type to use seems to be gnutls_openpgp_keyid_t instead of
> uint8_t/unsigned char. It is declared like this:
> #define GNUTLS_OPENPGP_KEYID_SIZE 8
> typedef unsigned char gnutls_openpgp_keyid_t[GNUTLS_OPENPGP_KEYID_SIZE];
This is wrong! gnutls_openpgp_keyid_t with the above typedef is just a
pointer type meaning it has 4 bytes in 32-bit systems. I made the
definition like that to make clear to the caller that 8-bytes should
be allocated, but it seems this obscure typedef is confusing. It might
be better to be replaced with a simple pointer type.
regards,
Nikos
More information about the Gnutls-devel
mailing list