don't require pycrypto. fixes #3444
This commit is contained in:
parent
b79170cc70
commit
d2b014e17a
|
@ -12,7 +12,6 @@ import os
|
||||||
import time
|
import time
|
||||||
|
|
||||||
from common import dh
|
from common import dh
|
||||||
from common import crypto
|
|
||||||
import xmpp.c14n
|
import xmpp.c14n
|
||||||
|
|
||||||
import base64
|
import base64
|
||||||
|
@ -100,6 +99,7 @@ if gajim.HAVE_PYCRYPTO:
|
||||||
from Crypto.Cipher import AES
|
from Crypto.Cipher import AES
|
||||||
from Crypto.Hash import HMAC, SHA256
|
from Crypto.Hash import HMAC, SHA256
|
||||||
from Crypto.PublicKey import RSA
|
from Crypto.PublicKey import RSA
|
||||||
|
from common import crypto
|
||||||
|
|
||||||
# an encrypted stanza negotiation has several states. i've represented them
|
# an encrypted stanza negotiation has several states. i've represented them
|
||||||
# as the following values in the 'status'
|
# as the following values in the 'status'
|
||||||
|
|
Loading…
Reference in New Issue