]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[802.11] Use correct SHA1_DIGEST_SIZE constant name
authorMichael Brown <mcb30@ipxe.org>
Sat, 25 Jul 2015 13:42:06 +0000 (14:42 +0100)
committerMichael Brown <mcb30@ipxe.org>
Mon, 27 Jul 2015 14:59:10 +0000 (15:59 +0100)
The constant SHA1_SIZE is defined only as part of the imported AXTLS code.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/net/80211/wpa_ccmp.c

index f98ebea26cbc79d2b8785367290d9c5167afe55d..a073c6a3cfec681a44198df14ba338e4e1673c99 100644 (file)
@@ -480,7 +480,7 @@ static void ccmp_kie_mic ( const void *kck, const void *msg, size_t len,
 {
        u8 sha1_ctx[SHA1_CTX_SIZE];
        u8 kckb[16];
-       u8 hash[SHA1_SIZE];
+       u8 hash[SHA1_DIGEST_SIZE];
        size_t kck_len = 16;
 
        memcpy ( kckb, kck, kck_len );