Resolve some sparse warnings
Mainly, this is including header files to get definitions for functions which is good to verify that the parameters match. None of these are issues that would have shown as incorrect behavior of the program.
This commit is contained in:
parent
73d0ad78c8
commit
8e2c104fa1
10 changed files with 10 additions and 2 deletions
|
@ -17,6 +17,7 @@
|
||||||
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "aes.h"
|
#include "aes.h"
|
||||||
|
#include "aes_wrap.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* aes_128_cbc_encrypt - AES-128 CBC encryption
|
* aes_128_cbc_encrypt - AES-128 CBC encryption
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "aes.h"
|
#include "aes.h"
|
||||||
|
#include "aes_wrap.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* aes_128_ctr_encrypt - AES-128 CTR mode encryption
|
* aes_128_ctr_encrypt - AES-128 CTR mode encryption
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "aes.h"
|
#include "aes.h"
|
||||||
|
#include "aes_wrap.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* aes_128_encrypt_block - Perform one AES 128-bit block operation
|
* aes_128_encrypt_block - Perform one AES 128-bit block operation
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "aes.h"
|
#include "aes.h"
|
||||||
|
#include "aes_wrap.h"
|
||||||
|
|
||||||
static void gf_mulx(u8 *pad)
|
static void gf_mulx(u8 *pad)
|
||||||
{
|
{
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "aes.h"
|
#include "aes.h"
|
||||||
|
#include "aes_wrap.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* aes_unwrap - Unwrap key with AES Key Wrap Algorithm (128-bit KEK) (RFC3394)
|
* aes_unwrap - Unwrap key with AES Key Wrap Algorithm (128-bit KEK) (RFC3394)
|
||||||
|
|
|
@ -23,6 +23,7 @@
|
||||||
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "wpabuf.h"
|
#include "wpabuf.h"
|
||||||
|
#include "dh_group5.h"
|
||||||
#include "crypto.h"
|
#include "crypto.h"
|
||||||
|
|
||||||
#if OPENSSL_VERSION_NUMBER < 0x00907000
|
#if OPENSSL_VERSION_NUMBER < 0x00907000
|
||||||
|
|
|
@ -1701,7 +1701,7 @@ wpa_driver_nl80211_get_scan_results(void *priv)
|
||||||
|
|
||||||
res = os_zalloc(sizeof(*res));
|
res = os_zalloc(sizeof(*res));
|
||||||
if (res == NULL)
|
if (res == NULL)
|
||||||
return 0;
|
return NULL;
|
||||||
msg = nlmsg_alloc();
|
msg = nlmsg_alloc();
|
||||||
if (!msg)
|
if (!msg)
|
||||||
goto nla_put_failure;
|
goto nla_put_failure;
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
#include "includes.h"
|
#include "includes.h"
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
#include "wps/wps.h"
|
#include "wps/wps.h"
|
||||||
|
#include "wps/wps_i.h"
|
||||||
|
|
||||||
#define FLAG_MESSAGE_BEGIN (1 << 7)
|
#define FLAG_MESSAGE_BEGIN (1 << 7)
|
||||||
#define FLAG_MESSAGE_END (1 << 6)
|
#define FLAG_MESSAGE_END (1 << 6)
|
||||||
|
|
|
@ -1139,7 +1139,7 @@ static int wps_build_cred_encr_type(struct wpabuf *msg,
|
||||||
|
|
||||||
|
|
||||||
static int wps_build_cred_network_key(struct wpabuf *msg,
|
static int wps_build_cred_network_key(struct wpabuf *msg,
|
||||||
const const struct wps_credential *cred)
|
const struct wps_credential *cred)
|
||||||
{
|
{
|
||||||
wpa_printf(MSG_DEBUG, "WPS: * Network Key");
|
wpa_printf(MSG_DEBUG, "WPS: * Network Key");
|
||||||
wpabuf_put_be16(msg, ATTR_NETWORK_KEY);
|
wpabuf_put_be16(msg, ATTR_NETWORK_KEY);
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
#include <dirent.h>
|
#include <dirent.h>
|
||||||
|
|
||||||
#include "wps/wps.h"
|
#include "wps/wps.h"
|
||||||
|
#include "wps/wps_i.h"
|
||||||
|
|
||||||
#ifdef CONFIG_NATIVE_WINDOWS
|
#ifdef CONFIG_NATIVE_WINDOWS
|
||||||
#define UFD_DIR1 "%s\\SMRTNTKY"
|
#define UFD_DIR1 "%s\\SMRTNTKY"
|
||||||
|
|
Loading…
Reference in a new issue