gnutls-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: compilation error with gnutls 2.12.10 a,d mingw-w64


From: Nikos Mavrogiannopoulos
Subject: Re: compilation error with gnutls 2.12.10 a,d mingw-w64
Date: Mon, 10 Oct 2011 14:29:39 +0200

On Mon, Oct 10, 2011 at 2:21 PM, Simon Josefsson <address@hidden> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]