From ff92e5c5e1f31c769c3d21b0c3e0f7029939be2e Mon Sep 17 00:00:00 2001 From: Denis Kenzior Date: Tue, 24 Feb 2015 10:56:39 -0600 Subject: [PATCH] eapol: Add eapol_sm_set_aa_address --- src/eapol.c | 5 +++++ src/eapol.h | 1 + 2 files changed, 6 insertions(+) diff --git a/src/eapol.c b/src/eapol.c index da4622fc..bd5155d9 100644 --- a/src/eapol.c +++ b/src/eapol.c @@ -451,3 +451,8 @@ void eapol_sm_set_sta_address(struct eapol_sm *sm, const uint8_t *sta_addr) { memcpy(sm->sta_addr, sta_addr, sizeof(sm->sta_addr)); } + +void eapol_sm_set_aa_address(struct eapol_sm *sm, const uint8_t *aa_addr) +{ + memcpy(sm->aa_addr, aa_addr, sizeof(sm->aa_addr)); +} diff --git a/src/eapol.h b/src/eapol.h index 1aa0bd09..f499bac2 100644 --- a/src/eapol.h +++ b/src/eapol.h @@ -126,3 +126,4 @@ struct eapol_sm *eapol_sm_new(); void eapol_sm_free(struct eapol_sm *sm); void eapol_sm_set_sta_address(struct eapol_sm *sm, const uint8_t *sta_addr); +void eapol_sm_set_aa_address(struct eapol_sm *sm, const uint8_t *aa_addr);