diff --git a/lib/mac.h b/lib/mac.h index 5fc216fd..b6f3af52 100644 --- a/lib/mac.h +++ b/lib/mac.h @@ -89,7 +89,7 @@ struct mac_desc { byte *(*hash_final)(struct hash_context *ctx); }; -const struct mac_desc mac_table[ALG_MAX]; +extern const struct mac_desc mac_table[ALG_MAX]; static inline const char *mac_type_name(uint id) { return mac_table[id].name; }