Problem with warning: gcrypt.h '...' is deprecated messages
Werner Koch
wk at gnupg.org
Tue Sep 6 10:46:37 CEST 2011
On Mon, 5 Sep 2011 08:26, borneo.antonio at gmail.com said:
> Could you please provide me, as reference, the version of gcc you are using?
gcc (Debian 4.6.1-1) 4.6.1
> But if I define only GCRYPT_NO_DEPRECATED, I still get 6 warnings.
I see. The cause for this is that libgcrypt need the definition of
theses structures for itself. Thus a simple GCRYPT_NO_DEPRECATED is not
sufficient here. I should have put
#if !defined(GCRYPT_NO_DEPRECATED) || defined(_GCRYPT_IN_LIBGCRYPT)
/* Alternative interface for asymmetric cryptography. This interface
is deprecated. */
/* The algorithm IDs. */
typedef enum gcry_ac_id
....
typedef struct gcry_ac_ssa_pkcs_v1_5
{
gcry_md_algo_t md;
} gcry_ac_ssa_pkcs_v1_5_t _GCRY_ATTR_INTERNAL;
#endif
around the gcry_ac structure definitions.
Shalom-Salam,
Werner
--
Die Gedanken sind frei. Ausnahmen regelt ein Bundesgesetz.
More information about the Gcrypt-devel
mailing list