Coverage for /private/tmp/im/impacket/impacket/Dot11KeyManager.py : 51%

Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
# SECUREAUTH LABS. Copyright 2018 SecureAuth Corporation. All rights reserved. # # This software is provided under under a slightly modified version # of the Apache Software License. See the accompanying LICENSE file # for more information. # # Description: # IEEE 802.11 Network packet codecs. # # Author: # Gustavo Moreira
# List is an unhashable type raise Exception('BSSID datatype must be a tuple, list or array')
else: return False
bssid=self.__get_bssid_hasheable_type(bssid) self.keys[bssid] = key
return True
else: return False
bssid=self.__get_bssid_hasheable_type(bssid) if not isinstance(bssid, list): raise Exception('BSSID datatype must be a list')
if bssid in self.keys: del self.keys[bssid] return True
return False |