mirror of
https://github.com/vanhoefm/fragattacks.git
synced 2024-11-28 18:28:23 -05:00
DPP: Move authentication functionality into a separate source code file
This continues splitting dpp.c into smaller pieces. Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
This commit is contained in:
parent
182f6ae905
commit
fdbbb74064
@ -537,6 +537,7 @@ endif
|
|||||||
ifdef CONFIG_DPP
|
ifdef CONFIG_DPP
|
||||||
L_CFLAGS += -DCONFIG_DPP
|
L_CFLAGS += -DCONFIG_DPP
|
||||||
OBJS += src/common/dpp.c
|
OBJS += src/common/dpp.c
|
||||||
|
OBJS += src/common/dpp_auth.c
|
||||||
OBJS += src/common/dpp_crypto.c
|
OBJS += src/common/dpp_crypto.c
|
||||||
OBJS += src/common/dpp_pkex.c
|
OBJS += src/common/dpp_pkex.c
|
||||||
OBJS += src/common/dpp_reconfig.c
|
OBJS += src/common/dpp_reconfig.c
|
||||||
|
@ -568,6 +568,7 @@ endif
|
|||||||
ifdef CONFIG_DPP
|
ifdef CONFIG_DPP
|
||||||
CFLAGS += -DCONFIG_DPP
|
CFLAGS += -DCONFIG_DPP
|
||||||
OBJS += ../src/common/dpp.o
|
OBJS += ../src/common/dpp.o
|
||||||
|
OBJS += ../src/common/dpp_auth.o
|
||||||
OBJS += ../src/common/dpp_crypto.o
|
OBJS += ../src/common/dpp_crypto.o
|
||||||
OBJS += ../src/common/dpp_pkex.o
|
OBJS += ../src/common/dpp_pkex.o
|
||||||
OBJS += ../src/common/dpp_reconfig.o
|
OBJS += ../src/common/dpp_reconfig.o
|
||||||
|
1960
src/common/dpp.c
1960
src/common/dpp.c
File diff suppressed because it is too large
Load Diff
1976
src/common/dpp_auth.c
Normal file
1976
src/common/dpp_auth.c
Normal file
File diff suppressed because it is too large
Load Diff
@ -29,6 +29,7 @@ struct dpp_global {
|
|||||||
/* dpp.c */
|
/* dpp.c */
|
||||||
|
|
||||||
void dpp_build_attr_status(struct wpabuf *msg, enum dpp_status_error status);
|
void dpp_build_attr_status(struct wpabuf *msg, enum dpp_status_error status);
|
||||||
|
void dpp_build_attr_r_bootstrap_key_hash(struct wpabuf *msg, const u8 *hash);
|
||||||
unsigned int dpp_next_id(struct dpp_global *dpp);
|
unsigned int dpp_next_id(struct dpp_global *dpp);
|
||||||
struct wpabuf * dpp_build_conn_status(enum dpp_status_error result,
|
struct wpabuf * dpp_build_conn_status(enum dpp_status_error result,
|
||||||
const u8 *ssid, size_t ssid_len,
|
const u8 *ssid, size_t ssid_len,
|
||||||
@ -44,6 +45,7 @@ int dpp_prepare_channel_list(struct dpp_authentication *auth,
|
|||||||
unsigned int neg_freq,
|
unsigned int neg_freq,
|
||||||
struct hostapd_hw_modes *own_modes, u16 num_modes);
|
struct hostapd_hw_modes *own_modes, u16 num_modes);
|
||||||
void dpp_auth_fail(struct dpp_authentication *auth, const char *txt);
|
void dpp_auth_fail(struct dpp_authentication *auth, const char *txt);
|
||||||
|
int dpp_gen_uri(struct dpp_bootstrap_info *bi);
|
||||||
|
|
||||||
/* dpp_crypto.c */
|
/* dpp_crypto.c */
|
||||||
|
|
||||||
|
@ -21,6 +21,7 @@ OBJS += $(SRC)/crypto/sha384-kdf.o
|
|||||||
OBJS += $(SRC)/crypto/sha512-kdf.o
|
OBJS += $(SRC)/crypto/sha512-kdf.o
|
||||||
OBJS += $(SRC)/tls/asn1.o
|
OBJS += $(SRC)/tls/asn1.o
|
||||||
OBJS += $(SRC)/common/dpp.o
|
OBJS += $(SRC)/common/dpp.o
|
||||||
|
OBJS += $(SRC)/common/dpp_auth.o
|
||||||
OBJS += $(SRC)/common/dpp_crypto.o
|
OBJS += $(SRC)/common/dpp_crypto.o
|
||||||
OBJS += $(SRC)/common/dpp_pkex.o
|
OBJS += $(SRC)/common/dpp_pkex.o
|
||||||
OBJS += $(SRC)/common/dpp_reconfig.o
|
OBJS += $(SRC)/common/dpp_reconfig.o
|
||||||
|
@ -247,6 +247,7 @@ endif
|
|||||||
ifdef CONFIG_DPP
|
ifdef CONFIG_DPP
|
||||||
L_CFLAGS += -DCONFIG_DPP
|
L_CFLAGS += -DCONFIG_DPP
|
||||||
OBJS += src/common/dpp.c
|
OBJS += src/common/dpp.c
|
||||||
|
OBJS += src/common/dpp_auth.c
|
||||||
OBJS += src/common/dpp_crypto.c
|
OBJS += src/common/dpp_crypto.c
|
||||||
OBJS += src/common/dpp_pkex.c
|
OBJS += src/common/dpp_pkex.c
|
||||||
OBJS += src/common/dpp_reconfig.c
|
OBJS += src/common/dpp_reconfig.c
|
||||||
|
@ -279,6 +279,7 @@ endif
|
|||||||
ifdef CONFIG_DPP
|
ifdef CONFIG_DPP
|
||||||
CFLAGS += -DCONFIG_DPP
|
CFLAGS += -DCONFIG_DPP
|
||||||
OBJS += ../src/common/dpp.o
|
OBJS += ../src/common/dpp.o
|
||||||
|
OBJS += ../src/common/dpp_auth.o
|
||||||
OBJS += ../src/common/dpp_crypto.o
|
OBJS += ../src/common/dpp_crypto.o
|
||||||
OBJS += ../src/common/dpp_pkex.o
|
OBJS += ../src/common/dpp_pkex.o
|
||||||
OBJS += ../src/common/dpp_reconfig.o
|
OBJS += ../src/common/dpp_reconfig.o
|
||||||
|
Loading…
Reference in New Issue
Block a user