From 0c18512fcb3174b7d08c7d77890b3d849dfe72e1 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Mon, 27 Aug 2007 13:45:57 +0000 Subject: [PATCH] fix import error --- src/common/gajim.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/common/gajim.py b/src/common/gajim.py index 50c9656b1..443e96d46 100644 --- a/src/common/gajim.py +++ b/src/common/gajim.py @@ -139,12 +139,13 @@ for status in ('online', 'chat', 'away', 'xa', 'dnd', 'invisible'): HAVE_PYCRYPTO = True try: from Crypto.PublicKey.RSA import generate + import os except ImportError: HAVE_PYCRYPTO = False else: # public key for XEP-0116 #FIXME os.urandom is not a cryptographic PRNG - pubkey = Crypto.PublicKey.RSA.generate(384, os.urandom) + pubkey = generate(384, os.urandom) def get_nick_from_jid(jid): pos = jid.find('@')