summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Coelho <luciano.coelho@intel.com>2018-02-18 15:24:57 +0200
committerJohannes Berg <johannes.berg@intel.com>2018-02-23 12:34:42 +0100
commit9a1cf834b7d1e44bcf3b8aabe68f110ecc32b58f (patch)
treec4ecc255b7bb6e7ad455d4b4b5b349b080de1daf
parent54f492fc0e44ad0f61ecb8aa6fc2d84c631eacad (diff)
backport: remove stddef.h inclusions
The verification code was copied from userspace code which includes stddef.h. In the kernel, this header should not be included, so remove those cases. Fixes: 988e2af4b7a0 ("backports: add signature verification code") Signed-off-by: Luca Coelho <luciano.coelho@intel.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
-rw-r--r--backport/compat/verification/mbedtls/asn1.h2
-rw-r--r--backport/compat/verification/mbedtls/md.h2
-rw-r--r--backport/compat/verification/mbedtls/oid.h2
3 files changed, 0 insertions, 6 deletions
diff --git a/backport/compat/verification/mbedtls/asn1.h b/backport/compat/verification/mbedtls/asn1.h
index bc6b48b8..46eb214b 100644
--- a/backport/compat/verification/mbedtls/asn1.h
+++ b/backport/compat/verification/mbedtls/asn1.h
@@ -31,8 +31,6 @@
#include MBEDTLS_CONFIG_FILE
#endif
-#include <stddef.h>
-
#if defined(MBEDTLS_BIGNUM_C)
#include "bignum.h"
#endif
diff --git a/backport/compat/verification/mbedtls/md.h b/backport/compat/verification/mbedtls/md.h
index 9385116c..5342e4f5 100644
--- a/backport/compat/verification/mbedtls/md.h
+++ b/backport/compat/verification/mbedtls/md.h
@@ -27,8 +27,6 @@
#ifndef MBEDTLS_MD_H
#define MBEDTLS_MD_H
-#include <stddef.h>
-
#define MBEDTLS_ERR_MD_FEATURE_UNAVAILABLE -0x5080 /**< The selected feature is not available. */
#define MBEDTLS_ERR_MD_BAD_INPUT_DATA -0x5100 /**< Bad input parameters to function. */
#define MBEDTLS_ERR_MD_ALLOC_FAILED -0x5180 /**< Failed to allocate memory. */
diff --git a/backport/compat/verification/mbedtls/oid.h b/backport/compat/verification/mbedtls/oid.h
index 117ee475..b2ff0887 100644
--- a/backport/compat/verification/mbedtls/oid.h
+++ b/backport/compat/verification/mbedtls/oid.h
@@ -34,8 +34,6 @@
#include "asn1.h"
#include "pk.h"
-#include <stddef.h>
-
#if defined(MBEDTLS_CIPHER_C)
#include "cipher.h"
#endif