Isolate forward declaration of Gmac

pull/7585/head
kaleb-himes 2024-06-12 10:10:37 -04:00
parent 20911f254b
commit 8ca8827b58
1 changed files with 6 additions and 3 deletions

View File

@ -401,9 +401,6 @@ struct Aes {
#ifndef WC_AES_TYPE_DEFINED
typedef struct Aes Aes;
#ifdef HAVE_AESGCM
typedef struct Gmac Gmac;
#endif
#define WC_AES_TYPE_DEFINED
#endif
@ -463,6 +460,12 @@ struct Aes {
struct Gmac {
Aes aes;
};
#ifndef WC_AESGCM_TYPE_DEFINED
typedef struct Gmac Gmac;
#define WC_AESGCM_TYPE_DEFINED
#endif
#endif /* HAVE_AESGCM */
#endif /* HAVE_FIPS */