Lines Matching refs:tls_version
178 def __init__(self, hash_name="SHA256", tls_version=0x0303): argument
179 self.tls_version = tls_version
182 if tls_version < 0x0300: # SSLv2
184 elif tls_version == 0x0300: # SSLv3
186 elif (tls_version == 0x0301 or # TLS 1.0
187 tls_version == 0x0302): # TLS 1.1
189 elif tls_version == 0x0303: # TLS 1.2
206 if self.tls_version < 0x0300:
208 elif self.tls_version == 0x0300:
220 if self.tls_version <= 0x0300:
237 if self.tls_version < 0x0300:
239 elif self.tls_version == 0x0300:
271 if self.tls_version <= 0x0302:
295 if self.tls_version < 0x0300:
297 elif self.tls_version == 0x0300:
324 if self.tls_version < 0x0300:
326 elif self.tls_version == 0x0300: