From: damien Date: Tue, 12 Aug 2008 19:34:54 +0000 (+0000) Subject: missing SHA-256 bits. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=89e249975dea5bc7c0eb224258ad514b0c26e211;p=openbsd missing SHA-256 bits. --- diff --git a/sys/net80211/ieee80211_crypto.c b/sys/net80211/ieee80211_crypto.c index be0fee80237..484660cc9bb 100644 --- a/sys/net80211/ieee80211_crypto.c +++ b/sys/net80211/ieee80211_crypto.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ieee80211_crypto.c,v 1.50 2008/08/12 19:29:07 damien Exp $ */ +/* $OpenBSD: ieee80211_crypto.c,v 1.51 2008/08/12 19:34:54 damien Exp $ */ /*- * Copyright (c) 2008 Damien Bergamini @@ -175,7 +175,8 @@ const u_int8_t * ieee80211_get_pmk(struct ieee80211com *ic, struct ieee80211_node *ni, const u_int8_t *pmkid) { - if (ni->ni_rsnakms == IEEE80211_AKM_PSK) + if (ni->ni_rsnakms == IEEE80211_AKM_PSK || + ni->ni_rsnakms == IEEE80211_AKM_SHA256_PSK) return ic->ic_psk; /* the PMK is the PSK */ /* XXX find the PMK in the PMKSA cache using the PMKID */