Fixing some minor issues
This commit is contained in:
parent
b6efc0efd9
commit
176e97bb45
2 changed files with 2 additions and 2 deletions
|
@ -83,9 +83,9 @@ def load_cipher(cipher_name):
|
||||||
|
|
||||||
class CtypesCrypto(object):
|
class CtypesCrypto(object):
|
||||||
def __init__(self, cipher_name, key, iv, op):
|
def __init__(self, cipher_name, key, iv, op):
|
||||||
|
self._ctx = None
|
||||||
if not loaded:
|
if not loaded:
|
||||||
load_openssl()
|
load_openssl()
|
||||||
self._ctx = None
|
|
||||||
cipher = libcrypto.EVP_get_cipherbyname(cipher_name)
|
cipher = libcrypto.EVP_get_cipherbyname(cipher_name)
|
||||||
if not cipher:
|
if not cipher:
|
||||||
cipher = load_cipher(cipher_name)
|
cipher = load_cipher(cipher_name)
|
||||||
|
|
|
@ -234,7 +234,7 @@ class EventLoop(object):
|
||||||
traceback.print_exc()
|
traceback.print_exc()
|
||||||
for handler in self._handlers_to_remove:
|
for handler in self._handlers_to_remove:
|
||||||
self._handlers.remove(handler)
|
self._handlers.remove(handler)
|
||||||
self._handlers_to_remove = []
|
self._handlers_to_remove = []
|
||||||
self._iterating = False
|
self._iterating = False
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue