mirror of https://github.com/wolfSSL/wolfssl.git
fixes integer comparison and adds virtual env to ignored files.
parent
e06b17e170
commit
20cfbe399c
|
@ -13,3 +13,6 @@ dist/
|
|||
.tox/
|
||||
# Sphinx documentation
|
||||
docs/_build/
|
||||
|
||||
# Virtual env
|
||||
.env
|
||||
|
|
|
@ -45,16 +45,16 @@ class WolfSSLMethod:
|
|||
if protocol not in _PROTOCOL_LIST:
|
||||
raise ValueError("this protocol is not supported")
|
||||
|
||||
elif protocol is PROTOCOL_SSLv3:
|
||||
elif protocol == PROTOCOL_SSLv3:
|
||||
raise ValueError("this protocol is not supported")
|
||||
|
||||
elif protocol is PROTOCOL_TLSv1:
|
||||
elif protocol == PROTOCOL_TLSv1:
|
||||
raise ValueError("this protocol is not supported")
|
||||
|
||||
elif protocol is PROTOCOL_TLSv1_1:
|
||||
elif protocol == PROTOCOL_TLSv1_1:
|
||||
raise ValueError("this protocol is not supported")
|
||||
|
||||
elif protocol is PROTOCOL_TLSv1_2:
|
||||
elif protocol == PROTOCOL_TLSv1_2:
|
||||
self.native_object = \
|
||||
_lib.wolfTLSv1_2_server_method() if server_side else \
|
||||
_lib.wolfTLSv1_2_client_method()
|
||||
|
|
Loading…
Reference in New Issue