diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2019-04-06 08:34:43 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2019-04-06 12:33:07 +0200 |
commit | b5dfa6ce92131f803d4d672314c92d7aa6f6e22c (patch) | |
tree | 95ee2b79cfad59db2ca9f30ca48fd3d4cd888f0c /lib/nettle | |
parent | a34ca47f433478fb70304b16593c724a2f85f3a3 (diff) | |
download | gnutls-b5dfa6ce92131f803d4d672314c92d7aa6f6e22c.tar.gz |
nettle: include config.h before checking for definitionstmp-cmac-cfb8-fix
This makes sure that we don't include the internal backport
if compiled with a version of nettle that includes that code.
We also exclude nettle/backport from the static analyzer's list
as it contains files outside our control (from nettle project).
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Diffstat (limited to 'lib/nettle')
-rw-r--r-- | lib/nettle/backport/cfb8.c | 4 | ||||
-rw-r--r-- | lib/nettle/backport/cmac.c | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/lib/nettle/backport/cfb8.c b/lib/nettle/backport/cfb8.c index 0febf647fd..e9816feb78 100644 --- a/lib/nettle/backport/cfb8.c +++ b/lib/nettle/backport/cfb8.c @@ -37,6 +37,10 @@ * ############################################# */ +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + #ifndef HAVE_NETTLE_CFB8_ENCRYPT #include "cfb8.h" diff --git a/lib/nettle/backport/cmac.c b/lib/nettle/backport/cmac.c index 0791775cfd..a665f0ea6b 100644 --- a/lib/nettle/backport/cmac.c +++ b/lib/nettle/backport/cmac.c @@ -38,6 +38,10 @@ * ############################################# */ +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + #ifndef HAVE_NETTLE_CMAC128_UPDATE #include <nettle/aes.h> |