Problem with warning: gcrypt.h '...' is deprecated messages

Werner Koch wk at
Tue Sep 6 10:46:37 CEST 2011

On Mon,  5 Sep 2011 08:26, borneo.antonio at 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

/* 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;


around the gcry_ac structure definitions.



Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.

More information about the Gcrypt-devel mailing list