Exploit databaseDownload repository ZIP
GH-25fc1985744fec336f986521e61a3fb7
chertogun/cve-2020-27301-hostapd
Sources for CVE-2020-27301
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files51
chertogun/cve-2020-27301-hostapdRevision d29c6457cb14
- ↑..Parent directory
- Makefile
- brcm_vendor.h
- cli.c
- cli.h
- common_module_tests.c
- ctrl_iface_common.c
- ctrl_iface_common.h
- defs.h
- dhcp.h
- dpp.c
- dpp.h
- dpp_auth.c
- dpp_backup.c
- dpp_crypto.c
- dpp_i.h
- dpp_pkex.c
- dpp_reconfig.c
- dpp_tcp.c
- dragonfly.c
- dragonfly.h
- eapol_common.h
- gas.c
- gas.h
- gas_server.c
- gas_server.h
- hw_features_common.c
- hw_features_common.h
- ieee802_11_common.c
- ieee802_11_common.h
- ieee802_11_defs.h
- ieee802_1x_defs.h
- linux_bridge.h
- linux_vlan.h
- ocv.c
- ocv.h
- privsep_commands.h
- ptksa_cache.c
- ptksa_cache.h
- qca-vendor-attr.h
- qca-vendor.h
- sae.c
- sae.h
- sae_pk.c
- tnc.h
- version.h
- wpa_common.c
- wpa_common.h
- wpa_ctrl.c
- wpa_ctrl.h
- wpa_helpers.c
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
src/common/gas_server.h
Text · 1,623 bytes/*
* Generic advertisement service (GAS) server
* Copyright (c) 2017, Qualcomm Atheros, Inc.
* Copyright (c) 2020, The Linux Foundation
* Copyright (c) 2022, Qualcomm Innovation Center, Inc.
*
* This software may be distributed under the terms of the BSD license.
* See README for more details.
*/
#ifndef GAS_SERVER_H
#define GAS_SERVER_H
#ifdef CONFIG_GAS_SERVER
struct gas_server;
struct gas_server * gas_server_init(void *ctx,
void (*tx)(void *ctx, int freq,
const u8 *da,
struct wpabuf *buf,
unsigned int wait_time));
void gas_server_deinit(struct gas_server *gas);
int gas_server_register(struct gas_server *gas,
const u8 *adv_proto_id, u8 adv_proto_id_len,
struct wpabuf *
(*req_cb)(void *ctx, void *resp_ctx, const u8 *sa,
const u8 *query, size_t query_len,
int *comeback_delay),
void (*status_cb)(void *ctx, struct wpabuf *resp,
int ok),
void *ctx);
int gas_server_rx(struct gas_server *gas, const u8 *da, const u8 *sa,
const u8 *bssid, u8 categ, const u8 *data, size_t len,
int freq);
void gas_server_tx_status(struct gas_server *gas, const u8 *dst, const u8 *data,
size_t data_len, int ack);
int gas_server_set_comeback_delay(struct gas_server *gas, void *resp_ctx,
u16 comeback_delay);
int gas_server_set_resp(struct gas_server *gas, void *resp_ctx,
struct wpabuf *resp);
bool gas_server_response_sent(struct gas_server *gas, void *resp_ctx);
#else /* CONFIG_GAS_SERVER */
static inline void gas_server_deinit(struct gas_server *gas)
{
}
#endif /* CONFIG_GAS_SERVER */
#endif /* GAS_SERVER_H */