UDP over TCP use 0x8 as flag
This commit is contained in:
parent
19c84cac17
commit
84275b6815
2 changed files with 2 additions and 2 deletions
|
@ -288,7 +288,7 @@ class verify_sha1(verify_base):
|
|||
|
||||
def pack_auth_data(self, buf):
|
||||
data = chr(ord(buf[0]) | 0x10) + buf[1:]
|
||||
data += hmac.new(self.server_info.iv + self.server_info.key, buf, hashlib.sha1).digest()[:10]
|
||||
data += hmac.new(self.server_info.iv + self.server_info.key, data, hashlib.sha1).digest()[:10]
|
||||
return data
|
||||
|
||||
def client_pre_encrypt(self, buf):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue