16#ifndef LIBWIFI_GEN_AUTH_H
17#define LIBWIFI_GEN_AUTH_H
21#include "../../core/frame/management/authentication.h"
47 const unsigned char receiver[6],
48 const unsigned char transmitter[6],
49 const unsigned char address3[6],
uint16_t transaction_sequence
uint16_t algorithm_number
size_t libwifi_get_auth_length(struct libwifi_auth *auth)
Calculate the length of a given libwifi_auth.
int libwifi_create_auth(struct libwifi_auth *auth, const unsigned char receiver[6], const unsigned char transmitter[6], const unsigned char address3[6], uint16_t algorithm_number, uint16_t transaction_sequence, uint16_t status_code)
Generate a populated libwifi auth.
size_t libwifi_dump_auth(struct libwifi_auth *auth, unsigned char *buf, size_t buf_len)
Dump a libwifi_auth into a raw format for packet injection.
void libwifi_free_auth(struct libwifi_auth *auth)
Free any memory claimed by a libwifi_auth back to the system.