diff --git a/src/post_modules/Nettle/cipher.cmod b/src/post_modules/Nettle/cipher.cmod index 5ec0c3e0f3f76887b7d2974dd237ffe57121e53e..3bcb991d42b00486ab6f8964093fba0e7de484c8 100644 --- a/src/post_modules/Nettle/cipher.cmod +++ b/src/post_modules/Nettle/cipher.cmod @@ -1738,6 +1738,10 @@ PIKECLASS BlockCipher16 */ INHERIT Nettle_BlockCipher; +#ifdef HAVE_NETTLE_GCM_H + PIKEVAR object(Nettle_AEAD) GCM; +#endif + /*! @module CCM *! *! Implementation of the Counter with Cipher Block Chaining @@ -2269,6 +2273,7 @@ PIKECLASS BlockCipher16 */ #ifdef HAVE_NETTLE_GCM_H + #include <nettle/gcm.h> /*! @module GCM @@ -2294,8 +2299,6 @@ PIKECLASS BlockCipher16 *! @[CBC] */ - PIKEVAR object(Nettle_AEAD) GCM; - PIKECLASS _GCM program_flags PROGRAM_NEEDS_PARENT|PROGRAM_USES_PARENT; {