|
|
@ -82,17 +82,6 @@ class verify_base(plain.plain): |
|
|
|
def server_decode(self, buf): |
|
|
|
return (buf, True, False) |
|
|
|
|
|
|
|
def get_head_size(self, buf, def_value): |
|
|
|
if len(buf) < 2: |
|
|
|
return def_value |
|
|
|
if ord(buf[0]) == 1: |
|
|
|
return 7 |
|
|
|
if ord(buf[0]) == 4: |
|
|
|
return 19 |
|
|
|
if ord(buf[0]) == 3: |
|
|
|
return 4 + ord(buf[1]) |
|
|
|
return def_value |
|
|
|
|
|
|
|
class verify_simple(verify_base): |
|
|
|
def __init__(self, method): |
|
|
|
super(verify_simple, self).__init__(method) |
|
|
|