fix "tls1.0_session_auth_compatible"
This commit is contained in:
parent
7300205add
commit
430b98c982
1 changed files with 3 additions and 2 deletions
|
@ -179,7 +179,7 @@ class tls_auth(plain.plain):
|
||||||
return (b'', True)
|
return (b'', True)
|
||||||
|
|
||||||
def server_encode(self, buf):
|
def server_encode(self, buf):
|
||||||
if self.has_sent_header:
|
if self.raw_trans_sent or self.has_sent_header:
|
||||||
return buf
|
return buf
|
||||||
self.has_sent_header = True
|
self.has_sent_header = True
|
||||||
data = self.tls_version + self.pack_auth_data(self.client_id) + b"\x20" + self.client_id + binascii.unhexlify(b"0016c02bc02fc00ac009c013c01400330039002f0035000a0100006fff01000100000a00080006001700180019000b0002010000230000337400000010002900270568322d31360568322d31350568322d313402683208737064792f332e3108687474702f312e31000500050100000000000d001600140401050106010201040305030603020304020202")
|
data = self.tls_version + self.pack_auth_data(self.client_id) + b"\x20" + self.client_id + binascii.unhexlify(b"0016c02bc02fc00ac009c013c01400330039002f0035000a0100006fff01000100000a00080006001700180019000b0002010000230000337400000010002900270568322d31360568322d31350568322d313402683208737064792f332e3108687474702f312e31000500050100000000000d001600140401050106010201040305030603020304020202")
|
||||||
|
@ -191,8 +191,9 @@ class tls_auth(plain.plain):
|
||||||
return data
|
return data
|
||||||
|
|
||||||
def decode_error_return(self, buf):
|
def decode_error_return(self, buf):
|
||||||
|
self.raw_trans_sent = True
|
||||||
self.raw_trans_recv = True
|
self.raw_trans_recv = True
|
||||||
if self.method == 'tls_simple':
|
if self.method == 'tls1.0_session_auth':
|
||||||
return (b'E', False, False)
|
return (b'E', False, False)
|
||||||
return (buf, True, False)
|
return (buf, True, False)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue