3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-12-19 01:42:33 +01:00

eapol: Add eapol_sm_set_pmk

This commit is contained in:
Denis Kenzior 2015-02-24 10:57:25 -06:00
parent ff92e5c5e1
commit f85c860cc3
2 changed files with 6 additions and 0 deletions

View File

@ -456,3 +456,8 @@ 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)); memcpy(sm->aa_addr, aa_addr, sizeof(sm->aa_addr));
} }
void eapol_sm_set_pmk(struct eapol_sm *sm, const uint8_t *pmk)
{
memcpy(sm->pmk, pmk, sizeof(sm->pmk));
}

View File

@ -127,3 +127,4 @@ 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_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); void eapol_sm_set_aa_address(struct eapol_sm *sm, const uint8_t *aa_addr);
void eapol_sm_set_pmk(struct eapol_sm *sm, const uint8_t *pmk);